writeback: remove redundant checks for root memcg
authorJinliang Zheng <alexjlzheng@tencent.com>
Tue, 8 Aug 2023 08:44:32 +0000 (16:44 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:37:48 +0000 (13:37 -0700)
commit9af7c7426c2e49bad77cf7494fea85a773d1ded6
treee4deda8811fc6cf9e4ab82b9fa280f23290b3e63
parent97157d8908bc10dec22cc4479f4c5cc7db58a12c
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>
mm/backing-dev.c