diff options
Diffstat (limited to 'fs/btrfs/dev-replace.c')
| -rw-r--r-- | fs/btrfs/dev-replace.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index ee193c5222b2..55c15f31d00d 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c @@ -273,9 +273,9 @@ error:   * called from commit_transaction. Writes changed device replace state to   * disk.   */ -int btrfs_run_dev_replace(struct btrfs_trans_handle *trans, -			  struct btrfs_fs_info *fs_info) +int btrfs_run_dev_replace(struct btrfs_trans_handle *trans)  { +	struct btrfs_fs_info *fs_info = trans->fs_info;  	int ret;  	struct btrfs_root *dev_root = fs_info->dev_root;  	struct btrfs_path *path; @@ -662,7 +662,7 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,  	btrfs_device_set_disk_total_bytes(tgt_device,  					  src_device->disk_total_bytes);  	btrfs_device_set_bytes_used(tgt_device, src_device->bytes_used); -	ASSERT(list_empty(&src_device->resized_list)); +	ASSERT(list_empty(&src_device->post_commit_list));  	tgt_device->commit_total_bytes = src_device->commit_total_bytes;  	tgt_device->commit_bytes_used = src_device->bytes_used; @@ -696,7 +696,7 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,  	/* replace the sysfs entry */  	btrfs_sysfs_rm_device_link(fs_info->fs_devices, src_device); -	btrfs_rm_dev_replace_free_srcdev(fs_info, src_device); +	btrfs_rm_dev_replace_free_srcdev(src_device);  	/* write back the superblocks */  	trans = btrfs_start_transaction(root, 0); |