Commit e5987e13 authored by David Sterba's avatar David Sterba

btrfs: remove unused parameters from scrub_setup_wr_ctx

Never used.
Reviewed-by: default avatarLiu Bo <bo.li.liu@oracle.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 61d7e4cb
...@@ -282,9 +282,7 @@ static void scrub_remap_extent(struct btrfs_fs_info *fs_info, ...@@ -282,9 +282,7 @@ static void scrub_remap_extent(struct btrfs_fs_info *fs_info,
u64 *extent_physical, u64 *extent_physical,
struct btrfs_device **extent_dev, struct btrfs_device **extent_dev,
int *extent_mirror_num); int *extent_mirror_num);
static int scrub_setup_wr_ctx(struct scrub_ctx *sctx, static int scrub_setup_wr_ctx(struct scrub_wr_ctx *wr_ctx,
struct scrub_wr_ctx *wr_ctx,
struct btrfs_fs_info *fs_info,
struct btrfs_device *dev, struct btrfs_device *dev,
int is_dev_replace); int is_dev_replace);
static void scrub_free_wr_ctx(struct scrub_wr_ctx *wr_ctx); static void scrub_free_wr_ctx(struct scrub_wr_ctx *wr_ctx);
...@@ -501,7 +499,7 @@ struct scrub_ctx *scrub_setup_ctx(struct btrfs_device *dev, int is_dev_replace) ...@@ -501,7 +499,7 @@ struct scrub_ctx *scrub_setup_ctx(struct btrfs_device *dev, int is_dev_replace)
spin_lock_init(&sctx->stat_lock); spin_lock_init(&sctx->stat_lock);
init_waitqueue_head(&sctx->list_wait); init_waitqueue_head(&sctx->list_wait);
ret = scrub_setup_wr_ctx(sctx, &sctx->wr_ctx, fs_info, ret = scrub_setup_wr_ctx(&sctx->wr_ctx,
fs_info->dev_replace.tgtdev, is_dev_replace); fs_info->dev_replace.tgtdev, is_dev_replace);
if (ret) { if (ret) {
scrub_free_ctx(sctx); scrub_free_ctx(sctx);
...@@ -4084,9 +4082,7 @@ static void scrub_remap_extent(struct btrfs_fs_info *fs_info, ...@@ -4084,9 +4082,7 @@ static void scrub_remap_extent(struct btrfs_fs_info *fs_info,
btrfs_put_bbio(bbio); btrfs_put_bbio(bbio);
} }
static int scrub_setup_wr_ctx(struct scrub_ctx *sctx, static int scrub_setup_wr_ctx(struct scrub_wr_ctx *wr_ctx,
struct scrub_wr_ctx *wr_ctx,
struct btrfs_fs_info *fs_info,
struct btrfs_device *dev, struct btrfs_device *dev,
int is_dev_replace) int is_dev_replace)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment