]> git.baikalelectronics.ru Git - kernel.git/commit
fs: Don't need to put list_lru into its own cacheline
authorWaiman Long <longman@redhat.com>
Wed, 30 Jan 2019 18:52:37 +0000 (13:52 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Jan 2019 19:02:11 +0000 (11:02 -0800)
commitd31b76adc2ebd94bb2c78442e3727b6f95e91bce
tree9c31ffd2fc203a39f37d3a6f79af625de1edaeb5
parentb6e298945a5693377c5a0ca926cb501d1ba52d2d
fs: Don't need to put list_lru into its own cacheline

The list_lru structure is essentially just a pointer to a table of
per-node LRU lists.  Even if CONFIG_MEMCG_KMEM is defined, the list
field is just used for LRU list registration and shrinker_id is set at
initialization.  Those fields won't need to be touched that often.

So there is no point to make the list_lru structures to sit in their own
cachelines.

Signed-off-by: Waiman Long <longman@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/fs.h