summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorLonglong Xia <xialonglong1@huawei.com>2023-01-31 08:10:35 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-02-10 01:51:41 +0100
commit1d693a3e69ba786c6c263d51b8e6d0daf16723ae (patch)
tree781435228dd625d8c7f65a9fb07bbb9049394f34 /mm
parentmm, arch: add generic implementation of pfn_valid() for FLATMEM (diff)
downloadlinux-1d693a3e69ba786c6c263d51b8e6d0daf16723ae.tar.xz
linux-1d693a3e69ba786c6c263d51b8e6d0daf16723ae.zip
mm/swapfile: remove pr_debug in get_swap_pages()
It's known that get_swap_pages() may fail to find available space under some extreme case, but pr_debug() provides useless information. Let's remove it. Link: https://lkml.kernel.org/r/20230131071035.1085968-1-xialonglong1@huawei.com Signed-off-by: Longlong Xia <xialonglong1@huawei.com> Reviewed-by: "Huang, Ying" <ying.huang@intel.com> Cc: Chen Wandun <chenwandun@huawei.com> Cc: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Nanyong Sun <sunnanyong@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/swapfile.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c
index 888aed774fb6..cf0d72020f97 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -1098,8 +1098,6 @@ start_over:
spin_unlock(&si->lock);
if (n_ret || size == SWAPFILE_CLUSTER)
goto check_out;
- pr_debug("scan_swap_map of si %d failed to find offset\n",
- si->type);
cond_resched();
spin_lock(&swap_avail_lock);