Skip to contentSkip to conversation

mm-swap_statec-declare-a-few-variables-as-__read_mostly.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 16, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/swap_state.c: declare a few variables as __read_mostly
has been removed from the -mm tree. Its filename was
mm-swap_statec-declare-a-few-variables-as-__read_mostly.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Changbin Du <[email protected]>
Subject: mm/swap_state.c: declare a few variables as __read_mostly

These global variables are only set during initialization or rarely change, so declare them as __read_mostly.

---

 mm/swap_state.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
mm/swap_state.c renamed from mm/swap_state.c~mm-swap_statec-declare-a-few-variables-as-__read_mostly +3 -3
diff -puN mm/swap_state.c~mm-swap_statec-declare-a-few-variables-as-__read_mostly mm/swap_state.c
@@ -36,9 +36,9 @@ static const struct address_space_operat
 #endif
 };
 
-struct address_space *swapper_spaces[MAX_SWAPFILES];
-static unsigned int nr_swapper_spaces[MAX_SWAPFILES];
-bool swap_vma_readahead = true;
+struct address_space *swapper_spaces[MAX_SWAPFILES] __read_mostly;
+static unsigned int nr_swapper_spaces[MAX_SWAPFILES] __read_mostly;
+bool swap_vma_readahead __read_mostly = true;
 
 #define SWAP_RA_WIN_SHIFT	(PAGE_SHIFT / 2)
 #define SWAP_RA_HITS_MASK	((1UL << SWAP_RA_WIN_SHIFT) - 1)

_

Patches currently in -mm which might be from [email protected] are