]> git.baikalelectronics.ru Git - kernel.git/commit
mm/swap_state.c: declare a few variables as __read_mostly
authorChangbin Du <changbin.du@intel.com>
Thu, 16 Nov 2017 01:36:06 +0000 (17:36 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Nov 2017 02:21:05 +0000 (18:21 -0800)
commit7f37afdc6007e36a870507b1aab403eef093c299
tree4868c340c671bd5b7518c53d0f414f2213e97a6b
parentd365fca028b595b8cbf8d24a400d93cb06d14f53
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/swap_state.c