btrfs: Remove mirror argument from btrfs_csum_verify_data()
PATCH 1/1 btrfs: Remove mirror argument from btrfs_csum_verify_data()
Unused variable: mirror.
Signed-off-by Goldwyn Rodrigues <[email protected]>
--- fs/btrfs/ctree.h | 2 +- fs/btrfs/extent_io.c | 3 +-- fs/btrfs/inode.c | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-)
fs/btrfs/ctree.h +1 -1
@@ -3083,7 +3083,7 @@ u64 btrfs_file_extent_end(const struct btrfs_path *path);blk_status_t btrfs_submit_data_bio (struct inode *inode,struct bio *bio,int mirror_num,unsigned long bio_flags);int btrfs_verify_data_csum (struct btrfs_io_bio *io_bio,u32 bio_offset, -struct page *page,u64 start,u64 end,int mirror); +struct page *page,u64 start,u64 end);struct extent_map *btrfs_get_extent_fiemap (struct btrfs_inode *inode,u64 start,u64 len); noinline int can_nocow_extent(struct inode *inode, u64 offset, u64 *len,
fs/btrfs/extent_io.c +1 -2
@@ -2954,8 +2954,7 @@ static void end_bio_extent_readpage(struct bio *bio)if (likely (uptodate)) {if (is_data_inode (inode)) ret =btrfs_verify_data_csum (io_bio, - bio_offset, page, start, end, - mirror); + bio_offset, page, start, end);else ret =btrfs_validate_metadata_buffer (io_bio, page, start, end, mirror);
fs/btrfs/inode.c +1 -2
@@ -3145,10 +3145,9 @@ static int check_data_csum(struct inode *inode, struct btrfs_io_bio *io_bio,* @bio_offset: offset to the beginning of the bio (in bytes) * @start: file offset of the range start * @end: file offset of the range end (inclusive) -* @mirror: mirror number */ int btrfs_verify_data_csum (struct btrfs_io_bio *io_bio,u32 bio_offset, -struct page *page,u64 start,u64 end,int mirror) +struct page *page,u64 start,u64 end) {struct inode *inode = page->mapping->host;struct extent_io_tree *io_tree = &BTRFS_I (inode)->io_tree;
Signature · 1 line
2.30.1
Quoted 3 lines · Goldwyn Rodrigues
Unused variable: mirror.
Signed-off-by Goldwyn Rodrigues <[email protected]>
Added to misc-next, thanks.