The quilt patch titled Subject: mm/swap_state.c: optimize the code in clear_shadow_from_swap_cache() has been removed from the -mm tree. Its filename was mm-swap_statec-optimize-the-code-in-clear_shadow_from_swap_cache.patch This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: Baoquan He <bhe@xxxxxxxxxx> Subject: mm/swap_state.c: optimize the code in clear_shadow_from_swap_cache() Date: Wed, 5 Feb 2025 17:27:11 +0800 Use ALIGN to achieve the same effect and simplify the code. Link: https://lkml.kernel.org/r/20250205092721.9395-3-bhe@xxxxxxxxxx Signed-off-by: Baoquan He <bhe@xxxxxxxxxx> Cc: Chris Li <chrisl@xxxxxxxxxx> Cc: Kairui Song <ryncsn@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/swap_state.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/mm/swap_state.c~mm-swap_statec-optimize-the-code-in-clear_shadow_from_swap_cache +++ a/mm/swap_state.c @@ -270,9 +270,7 @@ void clear_shadow_from_swap_cache(int ty xa_unlock_irq(&address_space->i_pages); /* search the next swapcache until we meet end */ - curr >>= SWAP_ADDRESS_SPACE_SHIFT; - curr++; - curr <<= SWAP_ADDRESS_SPACE_SHIFT; + curr = ALIGN((curr + 1), SWAP_ADDRESS_SPACE_PAGES); if (curr > end) break; } _ Patches currently in -mm which might be from bhe@xxxxxxxxxx are