diff options
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 09ce951666ea..29eecbb6ec3a 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -939,6 +939,7 @@ static struct dentry *btrfs_mount(struct file_system_type *fs_type, int flags, | |||
939 | 939 | ||
940 | s->s_flags = flags | MS_NOSEC; | 940 | s->s_flags = flags | MS_NOSEC; |
941 | strlcpy(s->s_id, bdevname(bdev, b), sizeof(s->s_id)); | 941 | strlcpy(s->s_id, bdevname(bdev, b), sizeof(s->s_id)); |
942 | btrfs_sb(s)->fs_info->bdev_holder = fs_type; | ||
942 | error = btrfs_fill_super(s, fs_devices, data, | 943 | error = btrfs_fill_super(s, fs_devices, data, |
943 | flags & MS_SILENT ? 1 : 0); | 944 | flags & MS_SILENT ? 1 : 0); |
944 | if (error) { | 945 | if (error) { |
@@ -946,7 +947,6 @@ static struct dentry *btrfs_mount(struct file_system_type *fs_type, int flags, | |||
946 | return ERR_PTR(error); | 947 | return ERR_PTR(error); |
947 | } | 948 | } |
948 | 949 | ||
949 | btrfs_sb(s)->fs_info->bdev_holder = fs_type; | ||
950 | s->s_flags |= MS_ACTIVE; | 950 | s->s_flags |= MS_ACTIVE; |
951 | } | 951 | } |
952 | 952 | ||