mm/swapfile: remove pr_debug in get_swap_pages()
authorLonglong Xia <xialonglong1@huawei.com>
Tue, 31 Jan 2023 07:10:35 +0000 (07:10 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 10 Feb 2023 00:51:41 +0000 (16:51 -0800)
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>
mm/swapfile.c

index 888aed7..cf0d720 100644 (file)
@@ -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);