mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
btrfs: remove redundant replace_state init
dev_replace::replace_state has been set to BTRFS_DEV_REPLACE_ITEM_STATE_NEVER_STARTED (0) in the same function, So delete the line which sets replace_state = 0; Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
6d4cbf7903
commit
ab457246f8
1 changed files with 0 additions and 1 deletions
|
@ -59,7 +59,6 @@ int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info)
|
|||
BTRFS_DEV_REPLACE_ITEM_STATE_NEVER_STARTED;
|
||||
dev_replace->cont_reading_from_srcdev_mode =
|
||||
BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_ALWAYS;
|
||||
dev_replace->replace_state = 0;
|
||||
dev_replace->time_started = 0;
|
||||
dev_replace->time_stopped = 0;
|
||||
atomic64_set(&dev_replace->num_write_errors, 0);
|
||||
|
|
Loading…
Reference in a new issue