diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2022-04-29 08:16:04 +0200 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-04-29 08:16:04 +0200 |
commit | b2cb6826b6df2bdf91ae4406fd2ef97da7a9cd35 (patch) | |
tree | 28a3277c52bb8b6065799e97d8327835522ac72c /mm | |
parent | mm/vmscan: fix comment for current_may_throttle (diff) | |
download | linux-b2cb6826b6df2bdf91ae4406fd2ef97da7a9cd35.tar.xz linux-b2cb6826b6df2bdf91ae4406fd2ef97da7a9cd35.zip |
mm/vmscan: fix comment for isolate_lru_pages
Since commit 791b48b64232 ("mm: vmscan: scan until it finds eligible
pages"), splicing any skipped pages to the tail of the LRU list won't put
the system at risk of premature OOM but will waste lots of cpu cycles.
Correct the comment accordingly.
Link: https://lkml.kernel.org/r/20220416025231.8082-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmscan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index c5bfbb74fde1..6e255e2867d2 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2117,8 +2117,8 @@ move: * Splice any skipped pages to the start of the LRU list. Note that * this disrupts the LRU order when reclaiming for lower zones but * we cannot splice to the tail. If we did then the SWAP_CLUSTER_MAX - * scanning would soon rescan the same pages to skip and put the - * system at risk of premature OOM. + * scanning would soon rescan the same pages to skip and waste lots + * of cpu cycles. */ if (!list_empty(&pages_skipped)) { int zid; |