summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorCharan Teja Kalla <quic_charante@quicinc.com>2022-03-22 14:45:53 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2022-03-22 15:57:09 -0700
commit96bd3e79efee380ffe096b499d6f24102cf450ba (patch)
tree234e07acfb857a905d19efb691c09ecbf2cce487 /mm
parent2386eef2141cc72977e3a65feb304739ee8db6cb (diff)
downloadlinux-stable-96bd3e79efee380ffe096b499d6f24102cf450ba.tar.gz
linux-stable-96bd3e79efee380ffe096b499d6f24102cf450ba.tar.bz2
linux-stable-96bd3e79efee380ffe096b499d6f24102cf450ba.zip
mm: vmscan: fix documentation for page_check_references()
Commit b518154e59aa ("mm/vmscan: protect the workingset on anonymous LRU") requires to look twice for both mapped anon/file pages are used more than once to take the decission of reclaim or activation. Correct the documentation accordingly. Link: https://lkml.kernel.org/r/1646925640-21324-1-git-send-email-quic_charante@quicinc.com Signed-off-by: Charan Teja Kalla <quic_charante@quicinc.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/vmscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 24601f394c25..f5ec53f19f3b 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1385,7 +1385,7 @@ static enum page_references page_check_references(struct page *page,
/*
* All mapped pages start out with page table
* references from the instantiating fault, so we need
- * to look twice if a mapped file page is used more
+ * to look twice if a mapped file/anon page is used more
* than once.
*
* Mark it and spare it for another trip around the