diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2017-03-04 12:32:50 -0600 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-04-18 14:07:25 +0200 |
commit | 4d339d01063a248b3deb3aff94aaf53be6e84e08 (patch) | |
tree | 2618a8a9d149d92dd2ba14290a96814ccbf94c90 /fs/btrfs/super.c | |
parent | 1a79c1f2466bb54b329155b2b6910f386dc5aa9d (diff) | |
download | blackbird-op-linux-4d339d01063a248b3deb3aff94aaf53be6e84e08.tar.gz blackbird-op-linux-4d339d01063a248b3deb3aff94aaf53be6e84e08.zip |
btrfs: No need to check !(flags & MS_RDONLY) twice
Code cleanup.
The code block is for !(*flags & MS_RDONLY). We don't need
to check it again.
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 9530a333d302..6346876c97ea 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -1788,8 +1788,7 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data) } if (fs_info->fs_devices->missing_devices > - fs_info->num_tolerated_disk_barrier_failures && - !(*flags & MS_RDONLY)) { + fs_info->num_tolerated_disk_barrier_failures) { btrfs_warn(fs_info, "too many missing devices, writeable remount is not allowed"); ret = -EACCES; |