]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/swap: rename swap_swapcount() to swap_entry_swapped()
authorBaoquan He <bhe@redhat.com>
Wed, 5 Feb 2025 09:27:19 +0000 (17:27 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:49:41 +0000 (21:49 -0800)
commitc2bc9183e99e755f266eec4ea08d11d58ef962c8
tree89928caf55ea1e3a412116af48f1076d558282eb
parentc4f27633aa18db56d05f267f875f9c10e19bf1a2
mm/swap: rename swap_swapcount() to swap_entry_swapped()

The new function name can reflect the real behaviour of the function more
clearly and more accurately.  And the renaming avoids the confusion
between swap_swapcount() and swp_swapcount().

Link: https://lkml.kernel.org/r/20250205092721.9395-11-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>
include/linux/swap.h
mm/swap_state.c
mm/swapfile.c