diff options
author | Michal Hocko <mhocko@suse.cz> | 2014-04-07 18:37:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-07 19:35:57 -0400 |
commit | d715ae08f2ff87508a081c4df78061bf4f7211d6 (patch) | |
tree | d81db4fd7c18cd7c549ab638ebeff1d07437d9a5 /Documentation/cgroups | |
parent | 6d1fdc48938cd51a3964778d78f27cb26c8eb55d (diff) |
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>
Diffstat (limited to 'Documentation/cgroups')
-rw-r--r-- | Documentation/cgroups/memcg_test.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/cgroups/memcg_test.txt b/Documentation/cgroups/memcg_test.txt index ce94a83a7d9a..80ac454704b8 100644 --- a/Documentation/cgroups/memcg_test.txt +++ b/Documentation/cgroups/memcg_test.txt | |||
@@ -24,7 +24,7 @@ Please note that implementation details can be changed. | |||
24 | 24 | ||
25 | a page/swp_entry may be charged (usage += PAGE_SIZE) at | 25 | a page/swp_entry may be charged (usage += PAGE_SIZE) at |
26 | 26 | ||
27 | mem_cgroup_newpage_charge() | 27 | mem_cgroup_charge_anon() |
28 | Called at new page fault and Copy-On-Write. | 28 | Called at new page fault and Copy-On-Write. |
29 | 29 | ||
30 | mem_cgroup_try_charge_swapin() | 30 | mem_cgroup_try_charge_swapin() |
@@ -32,7 +32,7 @@ Please note that implementation details can be changed. | |||
32 | Followed by charge-commit-cancel protocol. (With swap accounting) | 32 | Followed by charge-commit-cancel protocol. (With swap accounting) |
33 | At commit, a charge recorded in swap_cgroup is removed. | 33 | At commit, a charge recorded in swap_cgroup is removed. |
34 | 34 | ||
35 | mem_cgroup_cache_charge() | 35 | mem_cgroup_charge_file() |
36 | Called at add_to_page_cache() | 36 | Called at add_to_page_cache() |
37 | 37 | ||
38 | mem_cgroup_cache_charge_swapin() | 38 | mem_cgroup_cache_charge_swapin() |