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@xxxxxxxxxxx> 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@xxxxxxxxxxx Signed-off-by: Jinliang Zheng <alexjlzheng@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- 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@xxxxxxxxxxx are writeback-remove-redundant-checks-for-root-memcg.patch