]> www.infradead.org Git - users/dwmw2/linux.git/commit
mm/swap_state.c: optimize the code in clear_shadow_from_swap_cache()
authorBaoquan He <bhe@redhat.com>
Wed, 5 Feb 2025 09:27:11 +0000 (17:27 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Mar 2025 05:06:05 +0000 (22:06 -0700)
commitcd57a3fb37f91ef6106bc970d2b5c5878d3b5627
tree8fa56b03b38062c0514ac7c67f489ae42badd931
parent81fe88a946051f1dceef72fb3f87bb0880392464
mm/swap_state.c: optimize the code in clear_shadow_from_swap_cache()

Use ALIGN to achieve the same effect and simplify the code.

Link: https://lkml.kernel.org/r/20250205092721.9395-3-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/swap_state.c