diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-14 14:42:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-14 14:42:26 -0400 |
commit | 41d9884c44237cd66e2bdbc412028b29196b344c (patch) | |
tree | 7a386f6de2f07c01f87f3a16965c9bb8b40f63c1 /kernel/cgroup.c | |
parent | 63345b4794aef4ebe16502cfe35b02bc9822d763 (diff) | |
parent | dae3794fd603b92dcbac2859fe0bc7fe129a5188 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull more vfs stuff from Al Viro:
"O_TMPFILE ABI changes, Oleg's fput() series, misc cleanups, including
making simple_lookup() usable for filesystems with non-NULL s_d_op,
which allows us to get rid of quite a bit of ugliness"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
sunrpc: now we can just set ->s_d_op
cgroup: we can use simple_lookup() now
efivarfs: we can use simple_lookup() now
make simple_lookup() usable for filesystems that set ->s_d_op
configfs: don't open-code d_alloc_name()
__rpc_lookup_create_exclusive: pass string instead of qstr
rpc_create_*_dir: don't bother with qstr
llist: llist_add() can use llist_add_batch()
llist: fix/simplify llist_add() and llist_add_batch()
fput: turn "list_head delayed_fput_list" into llist_head
fs/file_table.c:fput(): add comment
Safer ABI for O_TMPFILE
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index e5583d10a325..0e0b20b8c5db 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -802,7 +802,6 @@ static struct cgroup *task_cgroup_from_root(struct task_struct *task, | |||
802 | */ | 802 | */ |
803 | 803 | ||
804 | static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode); | 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 | static int cgroup_rmdir(struct inode *unused_dir, struct dentry *dentry); | 805 | static int cgroup_rmdir(struct inode *unused_dir, struct dentry *dentry); |
807 | static int cgroup_populate_dir(struct cgroup *cgrp, bool base_files, | 806 | static int cgroup_populate_dir(struct cgroup *cgrp, bool base_files, |
808 | unsigned long subsys_mask); | 807 | unsigned long subsys_mask); |
@@ -2642,7 +2641,7 @@ static const struct inode_operations cgroup_file_inode_operations = { | |||
2642 | }; | 2641 | }; |
2643 | 2642 | ||
2644 | static const struct inode_operations cgroup_dir_inode_operations = { | 2643 | static const struct inode_operations cgroup_dir_inode_operations = { |
2645 | .lookup = cgroup_lookup, | 2644 | .lookup = simple_lookup, |
2646 | .mkdir = cgroup_mkdir, | 2645 | .mkdir = cgroup_mkdir, |
2647 | .rmdir = cgroup_rmdir, | 2646 | .rmdir = cgroup_rmdir, |
2648 | .rename = cgroup_rename, | 2647 | .rename = cgroup_rename, |
@@ -2652,14 +2651,6 @@ static const struct inode_operations cgroup_dir_inode_operations = { | |||
2652 | .removexattr = cgroup_removexattr, | 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 | * Check if a file is a control file | 2655 | * Check if a file is a control file |
2665 | */ | 2656 | */ |