提交 d72c2468 编写于 作者: H Hou Tao 提交者: Xie XiuQi

cgroup: undo unnecessary updates to struct cgroup_subsys & cftype

euler inclusion
category: bugfix
bugzilla: 14007
CVE: NA

-------------------------------------------------

These updates are leftovers from CentOS 7.x, and are not needed on
hulk-4.19, so kill them.

Fixes: 52cc1eccf6de ("cgroups: Resource controller for open files")
Signed-off-by: NHou Tao <houtao1@huawei.com>
Reviewed-by: Nluojiajun <luojiajun3@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 0a2ee4b6
...@@ -569,12 +569,6 @@ struct cftype { ...@@ -569,12 +569,6 @@ struct cftype {
ssize_t (*write)(struct kernfs_open_file *of, ssize_t (*write)(struct kernfs_open_file *of,
char *buf, size_t nbytes, loff_t off); char *buf, size_t nbytes, loff_t off);
int (*read_seq_string)(struct cgroup *cont, struct cftype *cft,
struct seq_file *m);
int (*write_string)(struct cgroup *cgrp, struct cftype *cft,
const char *buffer);
#ifdef CONFIG_DEBUG_LOCK_ALLOC #ifdef CONFIG_DEBUG_LOCK_ALLOC
struct lock_class_key lockdep_key; struct lock_class_key lockdep_key;
#endif #endif
...@@ -673,7 +667,7 @@ struct cgroup_subsys { ...@@ -673,7 +667,7 @@ struct cgroup_subsys {
*/ */
struct cftype *dfl_cftypes; /* for the default hierarchy */ struct cftype *dfl_cftypes; /* for the default hierarchy */
struct cftype *legacy_cftypes; /* for the legacy hierarchies */ struct cftype *legacy_cftypes; /* for the legacy hierarchies */
struct cftype *base_cftypes;
/* /*
* A subsystem may depend on other subsystems. When such subsystem * A subsystem may depend on other subsystems. When such subsystem
* is enabled on a cgroup, the depended-upon subsystems are enabled * is enabled on a cgroup, the depended-upon subsystems are enabled
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册