diff options
Diffstat (limited to 'fs/sysfs')
-rw-r--r-- | fs/sysfs/mount.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c index c15a7a3572e9..71eb7e253927 100644 --- a/fs/sysfs/mount.c +++ b/fs/sysfs/mount.c | |||
@@ -118,13 +118,12 @@ static struct dentry *sysfs_mount(struct file_system_type *fs_type, | |||
118 | for (type = KOBJ_NS_TYPE_NONE; type < KOBJ_NS_TYPES; type++) | 118 | for (type = KOBJ_NS_TYPE_NONE; type < KOBJ_NS_TYPES; type++) |
119 | info->ns[type] = kobj_ns_grab_current(type); | 119 | info->ns[type] = kobj_ns_grab_current(type); |
120 | 120 | ||
121 | sb = sget(fs_type, sysfs_test_super, sysfs_set_super, info); | 121 | sb = sget(fs_type, sysfs_test_super, sysfs_set_super, flags, info); |
122 | if (IS_ERR(sb) || sb->s_fs_info != info) | 122 | if (IS_ERR(sb) || sb->s_fs_info != info) |
123 | free_sysfs_super_info(info); | 123 | free_sysfs_super_info(info); |
124 | if (IS_ERR(sb)) | 124 | if (IS_ERR(sb)) |
125 | return ERR_CAST(sb); | 125 | return ERR_CAST(sb); |
126 | if (!sb->s_root) { | 126 | if (!sb->s_root) { |
127 | sb->s_flags = flags; | ||
128 | error = sysfs_fill_super(sb, data, flags & MS_SILENT ? 1 : 0); | 127 | error = sysfs_fill_super(sb, data, flags & MS_SILENT ? 1 : 0); |
129 | if (error) { | 128 | if (error) { |
130 | deactivate_locked_super(sb); | 129 | deactivate_locked_super(sb); |