]> www.infradead.org Git - users/jedix/linux-maple.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>
Tue, 4 Mar 2025 05:49:39 +0000 (21:49 -0800)
commitf000b582e6d3c5e9c680e7ec01d78d7c237e98fc
treefe6a156c4dc9469dc7b84f8ca3ccd9d0b39beac3
parent4749e35b3aa3d8275b681e1754b5bbbe647d290f
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