diff options
Diffstat (limited to 'fs/btrfs/dev-replace.c')
| -rw-r--r-- | fs/btrfs/dev-replace.c | 18 | 
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index 2decb9fff445..4675bcd5f92e 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c @@ -250,7 +250,7 @@ static int btrfs_init_dev_replace_tgtdev(struct btrfs_fs_info *fs_info,  	}  	bdev_file = bdev_file_open_by_path(device_path, BLK_OPEN_WRITE, -					fs_info->bdev_holder, NULL); +					   fs_info->sb, &fs_holder_ops);  	if (IS_ERR(bdev_file)) {  		btrfs_err(fs_info, "target device %s is invalid!", device_path);  		return PTR_ERR(bdev_file); @@ -327,7 +327,7 @@ static int btrfs_init_dev_replace_tgtdev(struct btrfs_fs_info *fs_info,  	return 0;  error: -	fput(bdev_file); +	bdev_fput(bdev_file);  	return ret;  } @@ -600,7 +600,7 @@ static int btrfs_dev_replace_start(struct btrfs_fs_info *fs_info,  		return PTR_ERR(src_device);  	if (btrfs_pinned_by_swapfile(fs_info, src_device)) { -		btrfs_warn_in_rcu(fs_info, +		btrfs_warn(fs_info,  	  "cannot replace device %s (devid %llu) due to active swapfile",  			btrfs_dev_name(src_device), src_device->devid);  		return -ETXTBSY; @@ -647,7 +647,7 @@ static int btrfs_dev_replace_start(struct btrfs_fs_info *fs_info,  	dev_replace->srcdev = src_device;  	dev_replace->tgtdev = tgt_device; -	btrfs_info_in_rcu(fs_info, +	btrfs_info(fs_info,  		      "dev_replace from %s (devid %llu) to %s started",  		      btrfs_dev_name(src_device),  		      src_device->devid, @@ -943,7 +943,7 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,  								tgt_device);  	} else {  		if (scrub_ret != -ECANCELED) -			btrfs_err_in_rcu(fs_info, +			btrfs_err(fs_info,  				 "btrfs_scrub_dev(%s, %llu, %s) failed %d",  				 btrfs_dev_name(src_device),  				 src_device->devid, @@ -961,7 +961,7 @@ error:  		return scrub_ret;  	} -	btrfs_info_in_rcu(fs_info, +	btrfs_info(fs_info,  			  "dev_replace from %s (devid %llu) to %s finished",  			  btrfs_dev_name(src_device),  			  src_device->devid, @@ -1109,7 +1109,7 @@ int btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info)  			 * btrfs_dev_replace_finishing() will handle the  			 * cleanup part  			 */ -			btrfs_info_in_rcu(fs_info, +			btrfs_info(fs_info,  				"dev_replace from %s (devid %llu) to %s canceled",  				btrfs_dev_name(src_device), src_device->devid,  				btrfs_dev_name(tgt_device)); @@ -1143,7 +1143,7 @@ int btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info)  		ret = btrfs_commit_transaction(trans);  		WARN_ON(ret); -		btrfs_info_in_rcu(fs_info, +		btrfs_info(fs_info,  		"suspended dev_replace from %s (devid %llu) to %s canceled",  			btrfs_dev_name(src_device), src_device->devid,  			btrfs_dev_name(tgt_device)); @@ -1247,7 +1247,7 @@ static int btrfs_dev_replace_kthread(void *data)  	progress = btrfs_dev_replace_progress(fs_info);  	progress = div_u64(progress, 10); -	btrfs_info_in_rcu(fs_info, +	btrfs_info(fs_info,  		"continuing dev_replace from %s (devid %llu) to target %s @%u%%",  		btrfs_dev_name(dev_replace->srcdev),  		dev_replace->srcdev->devid,  | 
