Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61ecda68 authored by Anand Jain's avatar Anand Jain Committed by David Sterba
Browse files

btrfs: remove check for BTRFS_FS_STATE_ERROR which we just set



__btrfs_handle_fs_error() sets BTRFS_FS_STATE_ERROR, and calls
btrfs_handle_error() so no need to check if the BTRFS_FS_STATE_ERROR
is set in btrfs_handle_error(). And there is no other user of
btrfs_handle_error() as well.

Signed-off-by: default avatarAnand Jain <anand.jain@oracle.com>
Reviewed-by: default avatarNikolay Borisov <nborisov@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 8810f751
Loading
Loading
Loading
Loading
+12 −14
Original line number Diff line number Diff line
@@ -115,7 +115,6 @@ static void btrfs_handle_error(struct btrfs_fs_info *fs_info)
	if (sb_rdonly(sb))
		return;

	if (test_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state)) {
	sb->s_flags |= SB_RDONLY;
	btrfs_info(fs_info, "forced readonly");
	/*
@@ -129,7 +128,6 @@ static void btrfs_handle_error(struct btrfs_fs_info *fs_info)
	 * operation continues.
	 */
}
}

/*
 * __btrfs_handle_fs_error decodes expected errors from the caller and