summaryrefslogtreecommitdiffstats
path: root/kernel/cgroup.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-11-29 10:42:58 -0500
committerTejun Heo <tj@kernel.org>2013-11-29 10:42:58 -0500
commitb9f3cecaba592d4e98cd155c91b1414323ed51e8 (patch)
treeac2371d8169482c4d738a84ca337f42221255025 /kernel/cgroup.c
parentac1e69aa78e2e799a8d5475595ba744bdf29b597 (diff)
downloadlinux-b9f3cecaba592d4e98cd155c91b1414323ed51e8.tar.gz
linux-b9f3cecaba592d4e98cd155c91b1414323ed51e8.tar.bz2
linux-b9f3cecaba592d4e98cd155c91b1414323ed51e8.zip
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>
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r--kernel/cgroup.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 1e09ded0387a..b59e3453eae7 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -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)
{
struct cfent *cfe = __d_cfe(file->f_dentry);
- struct cftype *cft = __d_cft(file->f_dentry);
struct cgroup_subsys_state *css = cfe->css;
int ret = 0;
- if (cft->release)
- ret = cft->release(inode, file);
if (css->ss)
css_put(css);
if (file->f_op == &cgroup_seqfile_operations)