@@ -6808,8 +6808,9 @@ static void bbio_error(struct btrfs_bio *bbio, struct bio *bio, u64 logical)
}
}
-blk_status_t btrfs_map_bio(struct btrfs_fs_info *fs_info, struct bio *bio,
- int mirror_num, int async_submit)
+static blk_status_t __btrfs_map_bio(struct btrfs_fs_info *fs_info,
+ struct bio *bio, int mirror_num,
+ int async_submit)
{
struct btrfs_device *dev;
struct bio *first_bio = bio;
@@ -6884,6 +6885,12 @@ blk_status_t btrfs_map_bio(struct btrfs_fs_info *fs_info, struct bio *bio,
return BLK_STS_OK;
}
+blk_status_t btrfs_map_bio(struct btrfs_fs_info *fs_info, struct bio *bio,
+ int mirror_num, int async_submit)
+{
+ return __btrfs_map_bio(fs_info, bio, mirror_num, async_submit);
+}
+
/*
* Find a device specified by @devid or @uuid in the list of @fs_devices, or
* return NULL.
This patch renames btrfs_map_bio() to __btrfs_map_bio() to prepare using __btrfs_map_bio() as a helper function. NOTE: may be squash with next patch? Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> --- fs/btrfs/volumes.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)