All of lore.kernel.org
 help / color / mirror / Atom feed
* + writeback-remove-redundant-checks-for-root-memcg.patch added to mm-unstable branch
@ 2023-08-08 18:23 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2023-08-08 18:23 UTC (permalink / raw)
  To: mm-commits, alexjlzheng, akpm


The patch titled
     Subject: writeback: remove redundant checks for root memcg
has been added to the -mm mm-unstable branch.  Its filename is
     writeback-remove-redundant-checks-for-root-memcg.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/writeback-remove-redundant-checks-for-root-memcg.patch

This patch will later appear in the mm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days

------------------------------------------------------
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

writeback-remove-redundant-checks-for-root-memcg.patch


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

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

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-08 18:23 + writeback-remove-redundant-checks-for-root-memcg.patch added to mm-unstable branch 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.