]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcontrol: use page lists for uncharge batching
authorJohannes Weiner <hannes@cmpxchg.org>
Fri, 8 Aug 2014 21:19:24 +0000 (14:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Aug 2014 22:57:18 +0000 (15:57 -0700)
commit956ed266e549169cacc9996a13c496467ea5e6e5
tree35149b31a5f3a0bb85df2e40c79c46ed2df4f4ed
parent81c31c36ef5468bc8b48f51b45d12b71d6628f2e
mm: memcontrol: use page lists for uncharge batching

Pages are now uncharged at release time, and all sources of batched
uncharges operate on lists of pages.  Directly use those lists, and
get rid of the per-task batching state.

This also batches statistics accounting, in addition to the res
counter charges, to reduce IRQ-disabling and re-enabling.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Hugh Dickins <hughd@google.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Vladimir Davydov <vdavydov@parallels.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Vladimir Davydov <vdavydov@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/memcontrol.h
include/linux/sched.h
kernel/fork.c
mm/memcontrol.c
mm/swap.c
mm/vmscan.c