]> www.infradead.org Git - users/willy/linux.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>
Mon, 17 Mar 2025 05:06:07 +0000 (22:06 -0700)
commitc523aa890760b004eea47a0e00b5750a528f3ced
treecf9bf6b17d612c3ff1a0339b2ef96fea67968bf5
parentac2d3268284ba4e254e4ca346bf6d63fb8a17518
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