mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
cgroup: remove cftype->release()
Now that pidlist files don't use cftype->release(), it doesn't have any user left. Remove it. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com>
This commit is contained in:
parent
ac1e69aa78
commit
b9f3cecaba
2 changed files with 0 additions and 5 deletions
|
@ -499,8 +499,6 @@ struct cftype {
|
||||||
* kick type for multiplexing.
|
* kick type for multiplexing.
|
||||||
*/
|
*/
|
||||||
int (*trigger)(struct cgroup_subsys_state *css, unsigned int event);
|
int (*trigger)(struct cgroup_subsys_state *css, unsigned int event);
|
||||||
|
|
||||||
int (*release)(struct inode *inode, struct file *file);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -2448,12 +2448,9 @@ static int cgroup_file_open(struct inode *inode, struct file *file)
|
||||||
static int cgroup_file_release(struct inode *inode, struct file *file)
|
static int cgroup_file_release(struct inode *inode, struct file *file)
|
||||||
{
|
{
|
||||||
struct cfent *cfe = __d_cfe(file->f_dentry);
|
struct cfent *cfe = __d_cfe(file->f_dentry);
|
||||||
struct cftype *cft = __d_cft(file->f_dentry);
|
|
||||||
struct cgroup_subsys_state *css = cfe->css;
|
struct cgroup_subsys_state *css = cfe->css;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if (cft->release)
|
|
||||||
ret = cft->release(inode, file);
|
|
||||||
if (css->ss)
|
if (css->ss)
|
||||||
css_put(css);
|
css_put(css);
|
||||||
if (file->f_op == &cgroup_seqfile_operations)
|
if (file->f_op == &cgroup_seqfile_operations)
|
||||||
|
|
Loading…
Reference in a new issue