diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-05-13 18:35:41 -0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2015-07-01 11:36:47 -0400 |
commit | f9bb48825a6b5d02f4cabcc78967c75db903dcdc (patch) | |
tree | 4883ba33a67bb07e6c9611b4b7a818c428c73ec7 /fs/tracefs | |
parent | 87d2846fcf88113fae2341da1ca9a71f0d916f2c (diff) |
sysfs: Create mountpoints with sysfs_create_mount_point
This allows for better documentation in the code and
it allows for a simpler and fully correct version of
fs_fully_visible to be written.
The mount points converted and their filesystems are:
/sys/hypervisor/s390/ s390_hypfs
/sys/kernel/config/ configfs
/sys/kernel/debug/ debugfs
/sys/firmware/efi/efivars/ efivarfs
/sys/fs/fuse/connections/ fusectl
/sys/fs/pstore/ pstore
/sys/kernel/tracing/ tracefs
/sys/fs/cgroup/ cgroup
/sys/kernel/security/ securityfs
/sys/fs/selinux/ selinuxfs
/sys/fs/smackfs/ smackfs
Cc: stable@vger.kernel.org
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/tracefs')
-rw-r--r-- | fs/tracefs/inode.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/tracefs/inode.c b/fs/tracefs/inode.c index d92bdf3b079a..a43df11a163f 100644 --- a/fs/tracefs/inode.c +++ b/fs/tracefs/inode.c | |||
@@ -631,14 +631,12 @@ bool tracefs_initialized(void) | |||
631 | return tracefs_registered; | 631 | return tracefs_registered; |
632 | } | 632 | } |
633 | 633 | ||
634 | static struct kobject *trace_kobj; | ||
635 | |||
636 | static int __init tracefs_init(void) | 634 | static int __init tracefs_init(void) |
637 | { | 635 | { |
638 | int retval; | 636 | int retval; |
639 | 637 | ||
640 | trace_kobj = kobject_create_and_add("tracing", kernel_kobj); | 638 | retval = sysfs_create_mount_point(kernel_kobj, "tracing"); |
641 | if (!trace_kobj) | 639 | if (retval) |
642 | return -EINVAL; | 640 | return -EINVAL; |
643 | 641 | ||
644 | retval = register_filesystem(&trace_fs_type); | 642 | retval = register_filesystem(&trace_fs_type); |