mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
writeback: remove redundant checks for root memcg
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>
This commit is contained in:
parent
97157d8908
commit
9af7c7426c
1 changed files with 0 additions and 3 deletions
|
@ -732,9 +732,6 @@ struct bdi_writeback *wb_get_create(struct backing_dev_info *bdi,
|
||||||
|
|
||||||
might_alloc(gfp);
|
might_alloc(gfp);
|
||||||
|
|
||||||
if (!memcg_css->parent)
|
|
||||||
return &bdi->wb;
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
wb = wb_get_lookup(bdi, memcg_css);
|
wb = wb_get_lookup(bdi, memcg_css);
|
||||||
} while (!wb && !cgwb_create(bdi, memcg_css, gfp));
|
} while (!wb && !cgwb_create(bdi, memcg_css, gfp));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue