]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: rename high level charging functions
authorMichal Hocko <mhocko@suse.cz>
Mon, 7 Apr 2014 22:37:46 +0000 (15:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Apr 2014 23:35:57 +0000 (16:35 -0700)
commite5905291aea3405641581db5e5a5022253868d6f
treed81db4fd7c18cd7c549ab638ebeff1d07437d9a5
parentc1f1e6d820cc7e3fbf705f81378576110a5ad1cf
memcg: rename high level charging functions

mem_cgroup_newpage_charge is used only for charging anonymous memory so
it is better to rename it to mem_cgroup_charge_anon.

mem_cgroup_cache_charge is used for file backed memory so rename it to
mem_cgroup_charge_file.

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/cgroups/memcg_test.txt
include/linux/memcontrol.h
mm/filemap.c
mm/huge_memory.c
mm/memcontrol.c
mm/memory.c
mm/shmem.c