]> Gentwo Git Trees - linux/.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>
Sun, 23 Feb 2025 06:25:13 +0000 (22:25 -0800)
commit75c02d96695e0c92f7e3ab72bdbe567b6ac9bce8
treea4362d70b469e985c702901c302cce19db412c7d
parente9df213ba2c1000332ca401d201a73f19ee03c0b
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