All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged mm-stable] mm-fix-shrink-nrunqueued_dirty-counter-issue.patch removed from -mm tree
@ 2024-11-06  0:58 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2024-11-06  0:58 UTC (permalink / raw)
  To: mm-commits, justinjiang, akpm


The quilt patch titled
     Subject: mm: fix shrink nr.unqueued_dirty counter issue
has been removed from the -mm tree.  Its filename was
     mm-fix-shrink-nrunqueued_dirty-counter-issue.patch

This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Zhiguo Jiang <justinjiang@vivo.com>
Subject: mm: fix shrink nr.unqueued_dirty counter issue
Date: Fri, 12 Jan 2024 09:23:52 +0800

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: Zhiguo Jiang <justinjiang@vivo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/vmscan.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/mm/vmscan.c~mm-fix-shrink-nrunqueued_dirty-counter-issue
+++ a/mm/vmscan.c
@@ -5990,7 +5990,8 @@ again:
 			set_bit(PGDAT_WRITEBACK, &pgdat->flags);
 
 		/* Allow kswapd to start writing pages during reclaim.*/
-		if (sc->nr.unqueued_dirty == sc->nr.file_taken)
+		if (sc->nr.unqueued_dirty &&
+			sc->nr.unqueued_dirty == sc->nr.file_taken)
 			set_bit(PGDAT_DIRTY, &pgdat->flags);
 
 		/*
_

Patches currently in -mm which might be from justinjiang@vivo.com are



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-06  0:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-06  0:58 [merged mm-stable] mm-fix-shrink-nrunqueued_dirty-counter-issue.patch removed from -mm tree Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.