]> www.infradead.org Git - users/jedix/linux-maple.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>
Tue, 4 Mar 2025 05:49:40 +0000 (21:49 -0800)
commit5599315eea434dc7f50d895b46b7934037b84d2e
treeab7be6a95d921a01a7c341783a8e78fa0ce6ae46
parent727c339f3272284ae091f61b617dea6e9400ddda
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