2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00

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>
This commit is contained in:
Jeff Liu 2012-12-11 16:01:28 -08:00 committed by Linus Torvalds
parent a1dd450bcb
commit 348b465530

View File

@ -144,9 +144,9 @@ Figure 1 shows the important aspects of the controller
3. Each page has a pointer to the page_cgroup, which in turn knows the 3. Each page has a pointer to the page_cgroup, which in turn knows the
cgroup it belongs to cgroup it belongs to
The accounting is done as follows: mem_cgroup_charge() is invoked to set up The accounting is done as follows: mem_cgroup_charge_common() is invoked to
the necessary data structures and check if the cgroup that is being charged set up the necessary data structures and check if the cgroup that is being
is over its limit. If it is, then reclaim is invoked on the cgroup. charged is over its limit. If it is, then reclaim is invoked on the cgroup.
More details can be found in the reclaim section of this document. More details can be found in the reclaim section of this document.
If everything goes well, a page meta-data-structure called page_cgroup is If everything goes well, a page meta-data-structure called page_cgroup is
updated. page_cgroup has its own LRU on cgroup. updated. page_cgroup has its own LRU on cgroup.