]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/sysfs/mount.c
Merge branch 'for-3.6' of git://gitorious.org/linux-pwm/linux-pwm
[karo-tx-linux.git] / fs / sysfs / mount.c
index c15a7a3572e9cea94a2b2cf2e9ca30d9f45d21fd..71eb7e2539274a5cacd1fe61ba0bca46db8381b4 100644 (file)
@@ -118,13 +118,12 @@ static struct dentry *sysfs_mount(struct file_system_type *fs_type,
        for (type = KOBJ_NS_TYPE_NONE; type < KOBJ_NS_TYPES; type++)
                info->ns[type] = kobj_ns_grab_current(type);
 
-       sb = sget(fs_type, sysfs_test_super, sysfs_set_super, info);
+       sb = sget(fs_type, sysfs_test_super, sysfs_set_super, flags, info);
        if (IS_ERR(sb) || sb->s_fs_info != info)
                free_sysfs_super_info(info);
        if (IS_ERR(sb))
                return ERR_CAST(sb);
        if (!sb->s_root) {
-               sb->s_flags = flags;
                error = sysfs_fill_super(sb, data, flags & MS_SILENT ? 1 : 0);
                if (error) {
                        deactivate_locked_super(sb);