All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged mm-stable] writeback-remove-redundant-checks-for-root-memcg.patch removed from -mm tree
@ 2023-08-21 20:40 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2023-08-21 20:40 UTC (permalink / raw)
  To: mm-commits, alexjlzheng, akpm


The quilt patch titled
     Subject: writeback: remove redundant checks for root memcg
has been removed from the -mm tree.  Its filename was
     writeback-remove-redundant-checks-for-root-memcg.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: Jinliang Zheng <alexjlzheng@tencent.com>
Subject: writeback: remove redundant checks for root memcg
Date: Tue, 8 Aug 2023 16:44:32 +0800

The check for root memcg will be done in wb_get_lookup(), so remove the
redundant one to simplify the code.

Link: https://lkml.kernel.org/r/20230808084431.1632934-1-alexjlzheng@tencent.com
Signed-off-by: Jinliang Zheng <alexjlzheng@tencent.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/backing-dev.c |    3 ---
 1 file changed, 3 deletions(-)

--- a/mm/backing-dev.c~writeback-remove-redundant-checks-for-root-memcg
+++ a/mm/backing-dev.c
@@ -732,9 +732,6 @@ struct bdi_writeback *wb_get_create(stru
 
 	might_alloc(gfp);
 
-	if (!memcg_css->parent)
-		return &bdi->wb;
-
 	do {
 		wb = wb_get_lookup(bdi, memcg_css);
 	} while (!wb && !cgwb_create(bdi, memcg_css, gfp));
_

Patches currently in -mm which might be from alexjlzheng@tencent.com are



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

only message in thread, other threads:[~2023-08-21 20:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-21 20:40 [merged mm-stable] writeback-remove-redundant-checks-for-root-memcg.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.