]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
btrfs: do not pass compressed_bio to submit_compressed_bio()
authorGoldwyn Rodrigues <rgoldwyn@suse.de>
Thu, 14 Apr 2022 02:11:07 +0000 (21:11 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:13 +0000 (17:03 +0200)
Parameter struct compressed_bio is not used by the function
submit_compressed_bio(). Remove it.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c

index d6b6b6cfaa6a9c0318162389a33c4ad02fa71f2c..3e8417bfabe653c118cdfdd9b0eb8048a0198a29 100644 (file)
@@ -425,7 +425,6 @@ out:
 }
 
 static blk_status_t submit_compressed_bio(struct btrfs_fs_info *fs_info,
-                                         struct compressed_bio *cb,
                                          struct bio *bio, int mirror_num)
 {
        blk_status_t ret;
@@ -604,7 +603,7 @@ blk_status_t btrfs_submit_compressed_write(struct btrfs_inode *inode, u64 start,
                                        goto finish_cb;
                        }
 
-                       ret = submit_compressed_bio(fs_info, cb, bio, 0);
+                       ret = submit_compressed_bio(fs_info, bio, 0);
                        if (ret)
                                goto finish_cb;
                        bio = NULL;
@@ -942,7 +941,7 @@ blk_status_t btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
                                                  fs_info->sectorsize);
                        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)
                                goto finish_cb;
                        comp_bio = NULL;