]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: simplify lock_page_memcg()
authorJohannes Weiner <hannes@cmpxchg.org>
Tue, 9 Feb 2016 23:12:28 +0000 (10:12 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 9 Feb 2016 23:12:28 +0000 (10:12 +1100)
commit062bf402fb9aea257b5c2e4a74772108d0656495
tree12e5ce023520d2c4d4a1369d1e584d95b37ea317
parent6cecf86cf78bb6fee09833460a7c4b77ea2cf099
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.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Suggested-by: Vladimir Davydov <vdavydov@virtuozzo.com>
Acked-by: Vladimir Davydov <vdavydov@virtuozzo.com>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
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