Commit bbc251f3 authored by Zhiguo Jiang's avatar Zhiguo Jiang Committed by Andrew Morton
Browse files

mm: fix shrink nr.unqueued_dirty counter issue

It is needed to ensure sc->nr.unqueued_dirty > 0, which can avoid setting
PGDAT_DIRTY flag when sc->nr.unqueued_dirty and sc->nr.file_taken are both
zero.

Link: https://lkml.kernel.org/r/20240112012353.1387-1-justinjiang@vivo.com


Signed-off-by: default avatarZhiguo Jiang <justinjiang@vivo.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 5059aa63
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment