mm-swap-avoid-a-xa-load-for-swapout-path.patch removed from -mm tree
The quilt patch titled
Subject: mm/swap: avoid a xa load for swapout path
has been removed from the -mm tree. Its filename was
mm-swap-avoid-a-xa-load-for-swapout-path.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: Kairui Song <[email protected]>
Subject: mm/swap: avoid a xa load for swapout path
Date: Tue, 17 Oct 2023 09:17:28 +0800
A variable is never used for swapout path (shadowp is NULL) and compiler is unable to optimize out the unneeded load since it's a function call.
The was introduced by 3852f6768ede ("mm/swapcache: support to handle the shadow entries").
---
mm/swap_state.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
mm/swap_state.c renamed from mm/swap_state.c~mm-swap-avoid-a-xa-load-for-swapout-path +3 -3
@@ -109,9 +109,9 @@ int add_to_swap_cache(struct folio *foli goto unlock;for (i =0 ; i < nr; i++) {VM_BUG_ON_FOLIO (xas.xa_index != idx + i, folio); - old =xas_load (&xas); -if (xa_is_value (old)) { -if (shadowp) +if (shadowp) { + old =xas_load (&xas); +if (xa_is_value (old)) *shadowp = old; }xas_store (&xas, folio);
_
Patches currently in -mm which might be from [email protected] are