aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2015-05-14 01:01:40 +0000
committerJohannes Weiner <hannes@cmpxchg.org>2015-05-14 01:01:40 +0000
commit80885b1f704c1ccabb0752ae5ebacf2b4430c4fb (patch)
treedddcb7b27552cecba0545c32d415405887ac3320
parent0a8ccb8c0d5b323c9533938c0ff7bd3810d935da (diff)
downloadmm-next-80885b1f704c1ccabb0752ae5ebacf2b4430c4fb.tar.gz
rmap-fix-theoretical-race-between-do_wp_page-and-shrink_active_list-fix-fix
tweak comment, per Minchan Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> Cc: Hugh Dickins <hughd@google.com> Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Rik van Riel <riel@redhat.com> Cc: Vladimir Davydov <vdavydov@parallels.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--mm/rmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/rmap.c b/mm/rmap.c
index 8f3be486149297..9f47f152b01e1e 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -952,8 +952,8 @@ void page_move_anon_rmap(struct page *page,
anon_vma = (void *) anon_vma + PAGE_MAPPING_ANON;
/*
* Ensure that anon_vma and the PAGE_MAPPING_ANON bit are written
- * simultaneously, so a concurrent reader (eg shrink_active_list) will
- * not see one without the other.
+ * simultaneously, so a concurrent reader (eg page_referenced()'s
+ * PageAnon()) will not see one without the other.
*/
WRITE_ONCE(page->mapping, (struct address_space *) anon_vma);
}