diff options
author | Roman Gushchin <guro@fb.com> | 2018-06-08 11:17:52 +0200 |
---|---|---|
committer | Michal Hocko <mhocko@suse.com> | 2018-07-04 11:29:56 +0200 |
commit | 4245153446ca19a32a5061fc2144368a42da5d0f (patch) | |
tree | 5f98c0b882783764928434f6719d935840bd0638 | |
parent | 46abf8e36df869490a9f093bdbc208e57024b0f4 (diff) | |
download | mm-akpm/memcg-oom.tar.gz |
cgroup: list groupoom in cgroup featuresakpm/memcg-oom
List groupoom in cgroup features list (exported via
/sys/kernel/cgroup/features), which can be used by a userspace apps (most
likely, systemd) to get an idea which cgroup features are supported by
kernel.
Link: http://lkml.kernel.org/r/20171130152824.1591-8-guro@fb.com
Signed-off-by: Roman Gushchin <guro@fb.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: David Rientjes <rientjes@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | kernel/cgroup/cgroup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 4b64e63d5a6b2..de25822590d0a 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -5967,7 +5967,8 @@ static struct kobj_attribute cgroup_delegate_attr = __ATTR_RO(delegate); static ssize_t features_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) { - return snprintf(buf, PAGE_SIZE, "nsdelegate\n"); + return snprintf(buf, PAGE_SIZE, "nsdelegate\n" + "groupoom\n"); } static struct kobj_attribute cgroup_features_attr = __ATTR_RO(features); |