memcg: cleanup preparation for page table walk
authorNaoya Horiguchi <[email protected]>
Wed, 11 Feb 2015 23:27:57 +0000 (15:27 -0800)
committerLinus Torvalds <[email protected]>
Thu, 12 Feb 2015 01:06:06 +0000 (17:06 -0800)
commit26bcd64aa9a4ded25f0dd1848759081422a14d80
treeca6049db2d65e2ca3ef55836b7172aeea0d75b42
parentd85f4d6d3bfe3b82e2903ac51a2f837eab7115d7
memcg: cleanup preparation for page table walk

pagewalk.c can handle vma in itself, so we don't have to pass vma via
walk->private.  And both of mem_cgroup_count_precharge() and
mem_cgroup_move_charge() do for each vma loop themselves, but now it's
done in pagewalk.c, so let's clean up them.

Signed-off-by: Naoya Horiguchi <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Cyrill Gorcunov <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memcontrol.c