summaryrefslogtreecommitdiff
path: root/fs/fs-writeback.c
diff options
context:
space:
mode:
authorChen Ridong <chenridong@huawei.com>2025-12-02 02:57:47 +0000
committerTejun Heo <tj@kernel.org>2025-12-08 09:02:38 -1000
commit82d7e59ea707b55dc6c3ba3c56ded36742741bd4 (patch)
tree3931abbcb5d4f3471ee13f09dcaed4461b2bfece /fs/fs-writeback.c
parent50133c09d189a26f4cc6e78e382864fd599a1dc4 (diff)
downloadlinux-next-82d7e59ea707b55dc6c3ba3c56ded36742741bd4.tar.gz
linux-next-82d7e59ea707b55dc6c3ba3c56ded36742741bd4.zip
cgroup: switch to css_is_online() helper
Use the new css_is_online() helper that has been introduced to check css online state, instead of testing the CSS_ONLINE flag directly. This improves readability and centralizes the state check logic. No functional changes intended. Signed-off-by: Chen Ridong <chenridong@huawei.com> Acked-by: Shakeel Butt <shakeel.butt@linux.dev> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'fs/fs-writeback.c')
-rw-r--r--fs/fs-writeback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index 6800886c4d10..5dd6e89a6d29 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -981,7 +981,7 @@ void wbc_account_cgroup_owner(struct writeback_control *wbc, struct folio *folio
css = mem_cgroup_css_from_folio(folio);
/* dead cgroups shouldn't contribute to inode ownership arbitration */
- if (!(css->flags & CSS_ONLINE))
+ if (!css_is_online(css))
return;
id = css->id;