mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
mm: memcontrol: account slab stats per lruvec
Josef's redesign of the balancing between slab caches and the page cache requires slab cache statistics at the lruvec level. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Johannes Weiner <[email protected]> Acked-by: Vladimir Davydov <[email protected]> Cc: Josef Bacik <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Rik van Riel <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
00f3ca2c2d
commit
7779f21236
3 changed files with 7 additions and 27 deletions
|
|
@ -1615,7 +1615,7 @@ out:
|
|||
if (!page)
|
||||
return NULL;
|
||||
|
||||
mod_node_page_state(page_pgdat(page),
|
||||
mod_lruvec_page_state(page,
|
||||
(s->flags & SLAB_RECLAIM_ACCOUNT) ?
|
||||
NR_SLAB_RECLAIMABLE : NR_SLAB_UNRECLAIMABLE,
|
||||
1 << oo_order(oo));
|
||||
|
|
@ -1655,7 +1655,7 @@ static void __free_slab(struct kmem_cache *s, struct page *page)
|
|||
|
||||
kmemcheck_free_shadow(page, compound_order(page));
|
||||
|
||||
mod_node_page_state(page_pgdat(page),
|
||||
mod_lruvec_page_state(page,
|
||||
(s->flags & SLAB_RECLAIM_ACCOUNT) ?
|
||||
NR_SLAB_RECLAIMABLE : NR_SLAB_UNRECLAIMABLE,
|
||||
-pages);
|
||||
|
|
|
|||
Loading…
Reference in a new issue