diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.de> | 2018-10-05 14:26:15 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-07-01 13:34:55 +0200 |
commit | cebf05ca65d68d0de869a74754e0a0be35056243 (patch) | |
tree | 251be914621f2895c6b0749bbec7bc5da1e5d283 /fs/btrfs/super.c | |
parent | btrfs: switch order of unlocks of space_info and bg in do_trimming() (diff) | |
download | linux-cebf05ca65d68d0de869a74754e0a0be35056243.tar.xz linux-cebf05ca65d68d0de869a74754e0a0be35056243.zip |
btrfs: Remove unused variable mode in btrfs_mount
This is a leftover from 312c89fbca06 ("btrfs: cleanup btrfs_mount()
using btrfs_mount_root()"), the mode was used for opening devices that's
not done here anymore.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index db410c6b5f5f..526dbae5c4cf 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -1603,14 +1603,10 @@ static struct dentry *btrfs_mount(struct file_system_type *fs_type, int flags, { struct vfsmount *mnt_root; struct dentry *root; - fmode_t mode = FMODE_READ; char *subvol_name = NULL; u64 subvol_objectid = 0; int error = 0; - if (!(flags & SB_RDONLY)) - mode |= FMODE_WRITE; - error = btrfs_parse_subvol_options(data, &subvol_name, &subvol_objectid); if (error) { |