Commit 22b4ef50 authored by David Sterba's avatar David Sterba

btrfs: rename __btrfs_submit_bio() and drop double underscores

Previous patch freed the function name btrfs_submit_bio() so we can use
it for a helper that submits struct bio.
Reviewed-by: default avatarQu Wenruo <wqu@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 792e86ef
...@@ -502,7 +502,7 @@ static void btrfs_submit_mirrored_bio(struct btrfs_io_context *bioc, int dev_nr) ...@@ -502,7 +502,7 @@ static void btrfs_submit_mirrored_bio(struct btrfs_io_context *bioc, int dev_nr)
btrfs_submit_dev_bio(bioc->stripes[dev_nr].dev, bio); btrfs_submit_dev_bio(bioc->stripes[dev_nr].dev, bio);
} }
static void __btrfs_submit_bio(struct bio *bio, struct btrfs_io_context *bioc, static void btrfs_submit_bio(struct bio *bio, struct btrfs_io_context *bioc,
struct btrfs_io_stripe *smap, int mirror_num) struct btrfs_io_stripe *smap, int mirror_num)
{ {
if (!bioc) { if (!bioc) {
...@@ -603,7 +603,7 @@ static void run_one_async_done(struct btrfs_work *work, bool do_free) ...@@ -603,7 +603,7 @@ static void run_one_async_done(struct btrfs_work *work, bool do_free)
* context. This changes nothing when cgroups aren't in use. * context. This changes nothing when cgroups aren't in use.
*/ */
bio->bi_opf |= REQ_BTRFS_CGROUP_PUNT; bio->bi_opf |= REQ_BTRFS_CGROUP_PUNT;
__btrfs_submit_bio(bio, async->bioc, &async->smap, async->mirror_num); btrfs_submit_bio(bio, async->bioc, &async->smap, async->mirror_num);
} }
static bool should_async_write(struct btrfs_bio *bbio) static bool should_async_write(struct btrfs_bio *bbio)
...@@ -752,7 +752,7 @@ static bool btrfs_submit_chunk(struct btrfs_bio *bbio, int mirror_num) ...@@ -752,7 +752,7 @@ static bool btrfs_submit_chunk(struct btrfs_bio *bbio, int mirror_num)
} }
} }
__btrfs_submit_bio(bio, bioc, &smap, mirror_num); btrfs_submit_bio(bio, bioc, &smap, mirror_num);
done: done:
return map_length == length; return map_length == length;
...@@ -878,7 +878,7 @@ void btrfs_submit_repair_write(struct btrfs_bio *bbio, int mirror_num, bool dev_ ...@@ -878,7 +878,7 @@ void btrfs_submit_repair_write(struct btrfs_bio *bbio, int mirror_num, bool dev_
ASSERT(smap.dev == fs_info->dev_replace.srcdev); ASSERT(smap.dev == fs_info->dev_replace.srcdev);
smap.dev = fs_info->dev_replace.tgtdev; smap.dev = fs_info->dev_replace.tgtdev;
} }
__btrfs_submit_bio(&bbio->bio, NULL, &smap, mirror_num); btrfs_submit_bio(&bbio->bio, NULL, &smap, mirror_num);
return; return;
fail: fail:
......
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