]> Gentwo Git Trees - 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>
Sun, 23 Feb 2025 06:25:14 +0000 (22:25 -0800)
commit891136bb56895c896566b75075b5d64911bdf67f
tree3f2c2567d9ce2ec77b2cb70f77e49b3e14f2e65d
parent87140fef33f90348cfa5205912cf1962f8033ad8
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