diff options
Diffstat (limited to 'fs/btrfs/dev-replace.c')
| -rw-r--r-- | fs/btrfs/dev-replace.c | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index 4253ad580e39..70681686e8dc 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c @@ -148,13 +148,13 @@ no_valid_dev_replace_entry_found:  		    !btrfs_test_opt(dev_root, DEGRADED)) {  			ret = -EIO;  			pr_warn("btrfs: cannot mount because device replace operation is ongoing and\n" "srcdev (devid %llu) is missing, need to run 'btrfs dev scan'?\n", -				(unsigned long long)src_devid); +				src_devid);  		}  		if (!dev_replace->tgtdev &&  		    !btrfs_test_opt(dev_root, DEGRADED)) {  			ret = -EIO;  			pr_warn("btrfs: cannot mount because device replace operation is ongoing and\n" "tgtdev (devid %llu) is missing, need to run btrfs dev scan?\n", -				(unsigned long long)BTRFS_DEV_REPLACE_DEVID); +				BTRFS_DEV_REPLACE_DEVID);  		}  		if (dev_replace->tgtdev) {  			if (dev_replace->srcdev) { @@ -400,7 +400,7 @@ int btrfs_dev_replace_start(struct btrfs_root *root,  	args->result = BTRFS_IOCTL_DEV_REPLACE_RESULT_NO_ERROR;  	btrfs_dev_replace_unlock(dev_replace); -	btrfs_wait_all_ordered_extents(root->fs_info, 0); +	btrfs_wait_all_ordered_extents(root->fs_info);  	/* force writing the updated state information to disk */  	trans = btrfs_start_transaction(root, 0); @@ -475,7 +475,7 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,  		mutex_unlock(&dev_replace->lock_finishing_cancel_unmount);  		return ret;  	} -	btrfs_wait_all_ordered_extents(root->fs_info, 0); +	btrfs_wait_all_ordered_extents(root->fs_info);  	trans = btrfs_start_transaction(root, 0);  	if (IS_ERR(trans)) { @@ -747,7 +747,7 @@ int btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info)  	WARN_ON(atomic_xchg(  		&fs_info->mutually_exclusive_operation_running, 1));  	task = kthread_run(btrfs_dev_replace_kthread, fs_info, "btrfs-devrepl"); -	return PTR_RET(task); +	return PTR_ERR_OR_ZERO(task);  }  static int btrfs_dev_replace_kthread(void *data) | 
