Skip to content

Commit 4d339d0

Browse files
goldwynrkdave
authored andcommitted
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 <[email protected]> Reviewed-by: Omar Sandoval <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 1a79c1f commit 4d339d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/btrfs/super.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,8 +1788,7 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
17881788
}
17891789

17901790
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) {
17931792
btrfs_warn(fs_info,
17941793
"too many missing devices, writeable remount is not allowed");
17951794
ret = -EACCES;

0 commit comments

Comments
 (0)