Btrfs: cleanup double assignment of device->bytes_used when device replace finishes
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>
This commit is contained in:
parent
90180da42c
commit
c7662111c7
@ -550,7 +550,6 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,
|
||||
tgt_device->is_tgtdev_for_dev_replace = 0;
|
||||
tgt_device->devid = src_device->devid;
|
||||
src_device->devid = BTRFS_DEV_REPLACE_DEVID;
|
||||
tgt_device->bytes_used = src_device->bytes_used;
|
||||
memcpy(uuid_tmp, tgt_device->uuid, sizeof(uuid_tmp));
|
||||
memcpy(tgt_device->uuid, src_device->uuid, sizeof(tgt_device->uuid));
|
||||
memcpy(src_device->uuid, uuid_tmp, sizeof(src_device->uuid));
|
||||
|
Loading…
Reference in New Issue
Block a user