Commit d0779291 authored by David Sterba's avatar David Sterba

btrfs: remove unused parameters from extent_submit_bio_start_t

Remove parameters not used by any of the callbacks.
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent a758781d
...@@ -717,7 +717,6 @@ static void run_one_async_start(struct btrfs_work *work) ...@@ -717,7 +717,6 @@ static void run_one_async_start(struct btrfs_work *work)
async = container_of(work, struct async_submit_bio, work); async = container_of(work, struct async_submit_bio, work);
ret = async->submit_bio_start(async->private_data, async->bio, ret = async->submit_bio_start(async->private_data, async->bio,
async->mirror_num, async->bio_flags,
async->bio_offset); async->bio_offset);
if (ret) if (ret)
async->status = ret; async->status = ret;
...@@ -800,7 +799,6 @@ static blk_status_t btree_csum_one_bio(struct bio *bio) ...@@ -800,7 +799,6 @@ static blk_status_t btree_csum_one_bio(struct bio *bio)
} }
static blk_status_t __btree_submit_bio_start(void *private_data, struct bio *bio, static blk_status_t __btree_submit_bio_start(void *private_data, struct bio *bio,
int mirror_num, unsigned long bio_flags,
u64 bio_offset) u64 bio_offset)
{ {
/* /*
......
...@@ -97,8 +97,7 @@ typedef blk_status_t (extent_submit_bio_hook_t)(void *private_data, struct bio * ...@@ -97,8 +97,7 @@ typedef blk_status_t (extent_submit_bio_hook_t)(void *private_data, struct bio *
u64 bio_offset); u64 bio_offset);
typedef blk_status_t (extent_submit_bio_start_t)(void *private_data, typedef blk_status_t (extent_submit_bio_start_t)(void *private_data,
struct bio *bio, int mirror_num, unsigned long bio_flags, struct bio *bio, u64 bio_offset);
u64 bio_offset);
typedef blk_status_t (extent_submit_bio_done_t)(void *private_data, typedef blk_status_t (extent_submit_bio_done_t)(void *private_data,
struct bio *bio, int mirror_num, unsigned long bio_flags, struct bio *bio, int mirror_num, unsigned long bio_flags,
......
...@@ -1942,7 +1942,6 @@ int btrfs_merge_bio_hook(struct page *page, unsigned long offset, ...@@ -1942,7 +1942,6 @@ int btrfs_merge_bio_hook(struct page *page, unsigned long offset,
* are inserted into the btree * are inserted into the btree
*/ */
static blk_status_t __btrfs_submit_bio_start(void *private_data, struct bio *bio, static blk_status_t __btrfs_submit_bio_start(void *private_data, struct bio *bio,
int mirror_num, unsigned long bio_flags,
u64 bio_offset) u64 bio_offset)
{ {
struct inode *inode = private_data; struct inode *inode = private_data;
...@@ -8222,8 +8221,7 @@ static void btrfs_endio_direct_write(struct bio *bio) ...@@ -8222,8 +8221,7 @@ static void btrfs_endio_direct_write(struct bio *bio)
} }
static blk_status_t __btrfs_submit_bio_start_direct_io(void *private_data, static blk_status_t __btrfs_submit_bio_start_direct_io(void *private_data,
struct bio *bio, int mirror_num, struct bio *bio, u64 offset)
unsigned long bio_flags, u64 offset)
{ {
struct inode *inode = private_data; struct inode *inode = private_data;
blk_status_t ret; blk_status_t ret;
......
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