mm-swap_statec-optimize-the-code-in-clear_shadow_from_swap_cache.patch removed from -mm tree
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 <[email protected]>
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.
Signed-off-by Baoquan He <[email protected]>
Cc Chris Li <[email protected]>
Cc Kairui Song <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/swap_state.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
mm/swap_state.c renamed from mm/swap_state.c~mm-swap_statec-optimize-the-code-in-clear_shadow_from_swap_cache +1 -3
@@ -270,9 +270,7 @@ void clear_shadow_from_swap_cache(int tyxa_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 [email protected] are