cgroup: Remove CFTYPE_PRESSURE
authorTejun Heo <tj@kernel.org>
Tue, 6 Sep 2022 19:38:55 +0000 (09:38 -1000)
committerTejun Heo <tj@kernel.org>
Tue, 6 Sep 2022 19:38:55 +0000 (09:38 -1000)
commit8a693f7766f9e27c390c5fec8a5db1f9d1d8177e
treefeb54c06b800520209d311a55027ccfb7447938c
parent0083d27b21dd2a598df8275b98f89ced532e2e53
cgroup: Remove CFTYPE_PRESSURE

CFTYPE_PRESSURE is used to flag PSI related files so that they are not
created if PSI is disabled during boot. It's a bit weird to use a generic
flag to mark a specific file type. Let's instead move the PSI files into its
own cftypes array and add/rm them conditionally. This is a bit more code but
cleaner.

No userland visible changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
include/linux/cgroup-defs.h
kernel/cgroup/cgroup.c