]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cgroup: switch to css_is_online() helper
authorChen Ridong <chenridong@huawei.com>
Tue, 2 Dec 2025 02:57:47 +0000 (02:57 +0000)
committerTejun Heo <tj@kernel.org>
Mon, 8 Dec 2025 19:02:38 +0000 (09:02 -1000)
commit82d7e59ea707b55dc6c3ba3c56ded36742741bd4
tree3931abbcb5d4f3471ee13f09dcaed4461b2bfece
parent50133c09d189a26f4cc6e78e382864fd599a1dc4
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>
fs/fs-writeback.c
include/linux/memcontrol.h
kernel/cgroup/cgroup.c
mm/memcontrol.c
mm/page_owner.c