diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2017-09-09 01:15:21 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-09 03:26:49 +0200 |
commit | fa90b2fd300f38cc7b3e416974116c83f3953465 (patch) | |
tree | d21f304639c4de0e67a88086fd0f988e41567250 /block | |
parent | fs/epoll: use faster rb_first_cached() (diff) | |
download | linux-fa90b2fd300f38cc7b3e416974116c83f3953465.tar.xz linux-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')
0 files changed, 0 insertions, 0 deletions