Skip to content

Commit a5eb011

Browse files
alexshitorvalds
authored andcommitted
mm/memcg: update page struct member in comments
The page->mem_cgroup member is replaced by memcg_data, and add a helper page_memcg() for it. Need to update comments to avoid confusing. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Alex Shi <[email protected]> Acked-by: Roman Gushchin <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Vladimir Davydov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 013339d commit a5eb011

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mm/memcontrol.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ int mem_cgroup_scan_tasks(struct mem_cgroup *memcg,
13241324
* @page: the page
13251325
* @pgdat: pgdat of the page
13261326
*
1327-
* This function relies on page->mem_cgroup being stable - see the
1327+
* This function relies on page's memcg being stable - see the
13281328
* access rules in commit_charge().
13291329
*/
13301330
struct lruvec *mem_cgroup_page_lruvec(struct page *page, struct pglist_data *pgdat)
@@ -2879,7 +2879,7 @@ static void commit_charge(struct page *page, struct mem_cgroup *memcg)
28792879
{
28802880
VM_BUG_ON_PAGE(page->mem_cgroup, page);
28812881
/*
2882-
* Any of the following ensures page->mem_cgroup stability:
2882+
* Any of the following ensures page's memcg stability:
28832883
*
28842884
* - the page lock
28852885
* - LRU isolation

0 commit comments

Comments
 (0)