提交 61ecda68 编写于 作者: A Anand Jain 提交者: David Sterba

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: NAnand Jain <anand.jain@oracle.com>
Reviewed-by: NNikolay Borisov <nborisov@suse.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 8810f751
...@@ -115,7 +115,6 @@ static void btrfs_handle_error(struct btrfs_fs_info *fs_info) ...@@ -115,7 +115,6 @@ static void btrfs_handle_error(struct btrfs_fs_info *fs_info)
if (sb_rdonly(sb)) if (sb_rdonly(sb))
return; return;
if (test_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state)) {
sb->s_flags |= SB_RDONLY; sb->s_flags |= SB_RDONLY;
btrfs_info(fs_info, "forced readonly"); btrfs_info(fs_info, "forced readonly");
/* /*
...@@ -128,7 +127,6 @@ static void btrfs_handle_error(struct btrfs_fs_info *fs_info) ...@@ -128,7 +127,6 @@ static void btrfs_handle_error(struct btrfs_fs_info *fs_info)
* mounted writeable again, the device replace * mounted writeable again, the device replace
* operation continues. * operation continues.
*/ */
}
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册