]> www.infradead.org Git - users/hch/misc.git/commit
mm/swap: rename swap_is_has_cache() to swap_only_has_cache()
authorBaoquan He <bhe@redhat.com>
Wed, 5 Feb 2025 09:27:14 +0000 (17:27 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Mar 2025 05:06:06 +0000 (22:06 -0700)
commitb4735d94c29f6a65362d3cce0d55aa65e0e319e3
treeb645bbfdd0c61c4325b52179a87715d0480f2582
parent9b9cba7289ba7e5076fbfe913860306b4672631c
mm/swap: rename swap_is_has_cache() to swap_only_has_cache()

There are two predicates in the name of swap_is_has_cache() which is
confusing.  Renaming it to remove the confusion and can better reflect its
functionality.

Link: https://lkml.kernel.org/r/20250205092721.9395-6-bhe@redhat.com
Signed-off-by: Baoquan He <bhe@redhat.com>
Cc: Chris Li <chrisl@kernel.org>
Cc: Kairui Song <ryncsn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swapfile.c