diff options
| author | 2023-01-21 07:50:02 +0100 | |
|---|---|---|
| committer | 2023-02-15 19:38:50 +0100 | |
| commit | 4ae2edf12d49fdbaea2dfda0bb2ec06501bd3493 (patch) | |
| tree | 162288423e16b1743b2c211fe116fec1a7b477a9 /fs/btrfs/compression.c | |
| parent | btrfs: remove the direct I/O read checksum lookup optimization (diff) | |
| download | wireguard-linux-4ae2edf12d49fdbaea2dfda0bb2ec06501bd3493.tar.xz wireguard-linux-4ae2edf12d49fdbaea2dfda0bb2ec06501bd3493.zip | |
btrfs: simplify parameters of btrfs_lookup_bio_sums
The csums argument is always NULL now, so remove it and always allocate
the csums array in the btrfs_bio. Also pass the btrfs_bio instead of
inode + bio to document that this function requires a btrfs_bio and
not just any bio.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
| -rw-r--r-- | fs/btrfs/compression.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index 81dc70b94e3c..069b7d28ca03 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -801,7 +801,7 @@ void btrfs_submit_compressed_read(struct inode *inode, struct bio *bio, */ btrfs_bio(comp_bio)->file_offset = file_offset; - ret = btrfs_lookup_bio_sums(inode, comp_bio, NULL); + ret = btrfs_lookup_bio_sums(btrfs_bio(comp_bio)); if (ret) { btrfs_bio_end_io(btrfs_bio(comp_bio), ret); break; |
