]> Git Repo - linux.git/commit - mm/page-writeback.c
mm: simplify lock_page_memcg()
authorJohannes Weiner <[email protected]>
Tue, 15 Mar 2016 21:57:22 +0000 (14:57 -0700)
committerLinus Torvalds <[email protected]>
Tue, 15 Mar 2016 23:55:16 +0000 (16:55 -0700)
commit62cccb8c8e7a3ca233f49d5e7dcb1557d25465cd
tree43a902faf461c65393a4efebf9ff9622017b92b1
parent6a93ca8fde3cfce0f00f02281139a377c83e8d8c
mm: simplify lock_page_memcg()

Now that migration doesn't clear page->mem_cgroup of live pages anymore,
it's safe to make lock_page_memcg() and the memcg stat functions take
pages, and spare the callers from memcg objects.

[[email protected]: fix warnings]
Signed-off-by: Johannes Weiner <[email protected]>
Suggested-by: Vladimir Davydov <[email protected]>
Acked-by: Vladimir Davydov <[email protected]>
Cc: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
12 files changed:
fs/buffer.c
fs/xfs/xfs_aops.c
include/linux/memcontrol.h
include/linux/mm.h
include/linux/pagemap.h
mm/filemap.c
mm/memcontrol.c
mm/page-writeback.c
mm/rmap.c
mm/truncate.c
mm/vmscan.c
mm/workingset.c
This page took 0.08157 seconds and 4 git commands to generate.