diff options
author | Jianyu Zhan <nasa4836@gmail.com> | 2014-04-26 03:40:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-03 11:11:18 -0400 |
commit | c9482a5bdcc09be9096f40e858c5fe39c389cd52 (patch) | |
tree | 7227a6ac1cee3b5280de6dc51f37e7501af56385 /kernel | |
parent | cae61ba37b4c2672704cbd8a626fbd85be7e67d9 (diff) |
kernfs: move the last knowledge of sysfs out from kernfs
There is still one residue of sysfs remaining: the sb_magic
SYSFS_MAGIC. However this should be kernfs user specific,
so this patch moves it out. Kerrnfs user should specify their
magic number while mouting.
Signed-off-by: Jianyu Zhan <nasa4836@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/cgroup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 3f1ca934a237..ceee0c54c6a4 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <linux/init_task.h> | 33 | #include <linux/init_task.h> |
34 | #include <linux/kernel.h> | 34 | #include <linux/kernel.h> |
35 | #include <linux/list.h> | 35 | #include <linux/list.h> |
36 | #include <linux/magic.h> | ||
36 | #include <linux/mm.h> | 37 | #include <linux/mm.h> |
37 | #include <linux/mutex.h> | 38 | #include <linux/mutex.h> |
38 | #include <linux/mount.h> | 39 | #include <linux/mount.h> |
@@ -1604,7 +1605,8 @@ out_unlock: | |||
1604 | if (ret) | 1605 | if (ret) |
1605 | return ERR_PTR(ret); | 1606 | return ERR_PTR(ret); |
1606 | 1607 | ||
1607 | dentry = kernfs_mount(fs_type, flags, root->kf_root, &new_sb); | 1608 | dentry = kernfs_mount(fs_type, flags, root->kf_root, |
1609 | CGROUP_SUPER_MAGIC, &new_sb); | ||
1608 | if (IS_ERR(dentry) || !new_sb) | 1610 | if (IS_ERR(dentry) || !new_sb) |
1609 | cgroup_put(&root->cgrp); | 1611 | cgroup_put(&root->cgrp); |
1610 | return dentry; | 1612 | return dentry; |