File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -802,7 +802,6 @@ static struct cgroup *task_cgroup_from_root(struct task_struct *task,
802
802
*/
803
803
804
804
static int cgroup_mkdir (struct inode * dir , struct dentry * dentry , umode_t mode );
805
- static struct dentry * cgroup_lookup (struct inode * , struct dentry * , unsigned int );
806
805
static int cgroup_rmdir (struct inode * unused_dir , struct dentry * dentry );
807
806
static int cgroup_populate_dir (struct cgroup * cgrp , bool base_files ,
808
807
unsigned long subsys_mask );
@@ -2642,7 +2641,7 @@ static const struct inode_operations cgroup_file_inode_operations = {
2642
2641
};
2643
2642
2644
2643
static const struct inode_operations cgroup_dir_inode_operations = {
2645
- .lookup = cgroup_lookup ,
2644
+ .lookup = simple_lookup ,
2646
2645
.mkdir = cgroup_mkdir ,
2647
2646
.rmdir = cgroup_rmdir ,
2648
2647
.rename = cgroup_rename ,
@@ -2652,14 +2651,6 @@ static const struct inode_operations cgroup_dir_inode_operations = {
2652
2651
.removexattr = cgroup_removexattr ,
2653
2652
};
2654
2653
2655
- static struct dentry * cgroup_lookup (struct inode * dir , struct dentry * dentry , unsigned int flags )
2656
- {
2657
- if (dentry -> d_name .len > NAME_MAX )
2658
- return ERR_PTR (- ENAMETOOLONG );
2659
- d_add (dentry , NULL);
2660
- return NULL;
2661
- }
2662
-
2663
2654
/*
2664
2655
* Check if a file is a control file
2665
2656
*/
You can’t perform that action at this time.
0 commit comments