Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Goldwyn Rodrigues and committed by
David Sterba
4d339d01 1a79c1f2

+1 -2
+1 -2
fs/btrfs/super.c
··· 1788 1788 } 1789 1789 1790 1790 if (fs_info->fs_devices->missing_devices > 1791 - fs_info->num_tolerated_disk_barrier_failures && 1792 - !(*flags & MS_RDONLY)) { 1791 + fs_info->num_tolerated_disk_barrier_failures) { 1793 1792 btrfs_warn(fs_info, 1794 1793 "too many missing devices, writeable remount is not allowed"); 1795 1794 ret = -EACCES;