diff options
author | Jeff Liu <jeff.liu@oracle.com> | 2012-12-11 19:01:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-11 20:22:24 -0500 |
commit | 348b465530ad222ce80e516524dd01009a4f9205 (patch) | |
tree | f39212089d1b797e48ce31916889dff093c9f153 /Documentation/cgroups/memory.txt | |
parent | a1dd450bcb1a05e8218b9aac0ee36f8755d8a140 (diff) |
Documentation/cgroups/memory.txt: s/mem_cgroup_charge/mem_cgroup_change_common/
mem_cgroup_charge_common() is invoked as the entry point for cgroup limits
charge rather than mem_cgroup_charge(), as the later has been removed for
years. Update the cgroup/memory.txt to reflect this change.
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Cc: Ying Han <yinghan@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/cgroups/memory.txt')
-rw-r--r-- | Documentation/cgroups/memory.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt index 71c4da413444..a25cb3fafeba 100644 --- a/Documentation/cgroups/memory.txt +++ b/Documentation/cgroups/memory.txt | |||
@@ -144,9 +144,9 @@ Figure 1 shows the important aspects of the controller | |||
144 | 3. Each page has a pointer to the page_cgroup, which in turn knows the | 144 | 3. Each page has a pointer to the page_cgroup, which in turn knows the |
145 | cgroup it belongs to | 145 | cgroup it belongs to |
146 | 146 | ||
147 | The accounting is done as follows: mem_cgroup_charge() is invoked to set up | 147 | The accounting is done as follows: mem_cgroup_charge_common() is invoked to |
148 | the necessary data structures and check if the cgroup that is being charged | 148 | set up the necessary data structures and check if the cgroup that is being |
149 | is over its limit. If it is, then reclaim is invoked on the cgroup. | 149 | charged is over its limit. If it is, then reclaim is invoked on the cgroup. |
150 | More details can be found in the reclaim section of this document. | 150 | More details can be found in the reclaim section of this document. |
151 | If everything goes well, a page meta-data-structure called page_cgroup is | 151 | If everything goes well, a page meta-data-structure called page_cgroup is |
152 | updated. page_cgroup has its own LRU on cgroup. | 152 | updated. page_cgroup has its own LRU on cgroup. |