mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [merged] mm-swap_statec-declare-a-few-variables-as-__read_mostly.patch removed from -mm tree
@ 2017-11-16 20:02 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2017-11-16 20:02 UTC (permalink / raw)
  To: changbin.du, mm-commits


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 <changbin.du@intel.com>
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.

Link: http://lkml.kernel.org/r/1507802349-5554-1-git-send-email-changbin.du@intel.com
Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/swap_state.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff -puN mm/swap_state.c~mm-swap_statec-declare-a-few-variables-as-__read_mostly mm/swap_state.c
--- a/mm/swap_state.c~mm-swap_statec-declare-a-few-variables-as-__read_mostly
+++ a/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 changbin.du@intel.com are



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-16 20:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-16 20:02 [merged] mm-swap_statec-declare-a-few-variables-as-__read_mostly.patch removed from -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).