mm: memcontrol: remove stale page_cgroup_lock comment
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 10 Dec 2014 23:44:50 +0000 (15:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:08 +0000 (17:41 -0800)
There is no cgroup-specific page lock anymore.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c

index 031ca345677b9293093af8c17f6a7e906fe4bf79..78cb3b05a9fac6be7488acb8b4b3376109a8b613 100644 (file)
@@ -2467,10 +2467,6 @@ static void commit_charge(struct page *page, struct mem_cgroup *memcg,
        int isolated;
 
        VM_BUG_ON_PAGE(pc->mem_cgroup, page);
-       /*
-        * we don't need page_cgroup_lock about tail pages, becase they are not
-        * accessed by any other context at this point.
-        */
 
        /*
         * In some cases, SwapCache and FUSE(splice_buf->radixtree), the page