Commit 46fbd18e authored by Goldwyn Rodrigues's avatar Goldwyn Rodrigues Committed by David Sterba

btrfs: do not pass compressed_bio to submit_compressed_bio()

Parameter struct compressed_bio is not used by the function
submit_compressed_bio(). Remove it.
Signed-off-by: default avatarGoldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 2306e83e
...@@ -425,7 +425,6 @@ static void end_compressed_bio_write(struct bio *bio) ...@@ -425,7 +425,6 @@ static void end_compressed_bio_write(struct bio *bio)
} }
static blk_status_t submit_compressed_bio(struct btrfs_fs_info *fs_info, static blk_status_t submit_compressed_bio(struct btrfs_fs_info *fs_info,
struct compressed_bio *cb,
struct bio *bio, int mirror_num) struct bio *bio, int mirror_num)
{ {
blk_status_t ret; blk_status_t ret;
...@@ -604,7 +603,7 @@ blk_status_t btrfs_submit_compressed_write(struct btrfs_inode *inode, u64 start, ...@@ -604,7 +603,7 @@ blk_status_t btrfs_submit_compressed_write(struct btrfs_inode *inode, u64 start,
goto finish_cb; goto finish_cb;
} }
ret = submit_compressed_bio(fs_info, cb, bio, 0); ret = submit_compressed_bio(fs_info, bio, 0);
if (ret) if (ret)
goto finish_cb; goto finish_cb;
bio = NULL; bio = NULL;
...@@ -942,7 +941,7 @@ blk_status_t btrfs_submit_compressed_read(struct inode *inode, struct bio *bio, ...@@ -942,7 +941,7 @@ blk_status_t btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
fs_info->sectorsize); fs_info->sectorsize);
sums += fs_info->csum_size * nr_sectors; sums += fs_info->csum_size * nr_sectors;
ret = submit_compressed_bio(fs_info, cb, comp_bio, mirror_num); ret = submit_compressed_bio(fs_info, comp_bio, mirror_num);
if (ret) if (ret)
goto finish_cb; goto finish_cb;
comp_bio = NULL; comp_bio = NULL;
......
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