diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2017-09-08 16:15:21 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-08 18:26:49 -0700 |
commit | fa90b2fd300f38cc7b3e416974116c83f3953465 (patch) | |
tree | d21f304639c4de0e67a88086fd0f988e41567250 /block/cfq-iosched.c | |
parent | b2ac2ea6296e7dd779168eb085b09d0fab9d1294 (diff) | |
download | linux-stable-fa90b2fd300f38cc7b3e416974116c83f3953465.tar.gz linux-stable-fa90b2fd300f38cc7b3e416974116c83f3953465.tar.bz2 linux-stable-fa90b2fd300f38cc7b3e416974116c83f3953465.zip |
mem/memcg: cache rightmost node
Such that we can optimize __mem_cgroup_largest_soft_limit_node(). The
only overhead is the extra footprint for the cached pointer, but this
should not be an issue for mem_cgroup_tree_per_node.
[dave@stgolabs.net: brain fart #2]
Link: http://lkml.kernel.org/r/20170731160114.GE21328@linux-80c1.suse
Link: http://lkml.kernel.org/r/20170719014603.19029-17-dave@stgolabs.net
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'block/cfq-iosched.c')
0 files changed, 0 insertions, 0 deletions