diff options
author | Anand Jain <anand.jain@oracle.com> | 2018-11-12 13:05:15 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-12-17 14:51:32 +0100 |
commit | ab457246f8a45bbb3e79fd2a9c1044b5ac14ec99 (patch) | |
tree | 889ee42ccb93dcfb1baf31259fc9bfbf7dd963b5 /fs/btrfs/dev-replace.c | |
parent | 6d4cbf790307515dcd91eb2165e36e9b83d0fab6 (diff) | |
download | lwn-ab457246f8a45bbb3e79fd2a9c1044b5ac14ec99.tar.gz lwn-ab457246f8a45bbb3e79fd2a9c1044b5ac14ec99.zip |
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>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
-rw-r--r-- | fs/btrfs/dev-replace.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index 46092e67f61a..bbc492185848 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c @@ -59,7 +59,6 @@ no_valid_dev_replace_entry_found: 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); |