mm/swapfile: remove pr_debug in get_swap_pages()

JIRA: https://issues.redhat.com/browse/RHEL-27740
Tested: by me

commit 1d693a3e69ba786c6c263d51b8e6d0daf16723ae
Author: Longlong Xia <xialonglong1@huawei.com>
Date:   Tue Jan 31 07:10:35 2023 +0000

    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>

Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
This commit is contained in:
Aristeu Rozanski 2024-04-29 14:32:57 -04:00
parent 99b720b46b
commit b3c99528f6
1 changed files with 0 additions and 2 deletions

View File

@ -1100,8 +1100,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);