btrfs: simplify parameters of btrfs_lookup_bio_sums
authorChristoph Hellwig <hch@lst.de>
Sat, 21 Jan 2023 06:50:02 +0000 (07:50 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 15 Feb 2023 18:38:50 +0000 (19:38 +0100)
commit4ae2edf12d49fdbaea2dfda0bb2ec06501bd3493
tree162288423e16b1743b2c211fe116fec1a7b477a9
parent5fa356531e33e7c7783ccd0d7938a070b5df8c22
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>
fs/btrfs/compression.c
fs/btrfs/file-item.c
fs/btrfs/file-item.h
fs/btrfs/inode.c