diff options
author | Christoph Hellwig <hch@lst.de> | 2023-01-21 07:50:02 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-02-15 19:38:50 +0100 |
commit | 4ae2edf12d49fdbaea2dfda0bb2ec06501bd3493 (patch) | |
tree | 162288423e16b1743b2c211fe116fec1a7b477a9 /fs/btrfs/file-item.h | |
parent | 5fa356531e33e7c7783ccd0d7938a070b5df8c22 (diff) |
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/file-item.h')
-rw-r--r-- | fs/btrfs/file-item.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file-item.h b/fs/btrfs/file-item.h index 031225668434..a2f9747adf3a 100644 --- a/fs/btrfs/file-item.h +++ b/fs/btrfs/file-item.h @@ -38,7 +38,7 @@ static inline u32 btrfs_file_extent_calc_inline_size(u32 datasize) int btrfs_del_csums(struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 bytenr, u64 len); -blk_status_t btrfs_lookup_bio_sums(struct inode *inode, struct bio *bio, u8 *dst); +blk_status_t btrfs_lookup_bio_sums(struct btrfs_bio *bbio); int btrfs_insert_hole_extent(struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 objectid, u64 pos, u64 num_bytes); |