btrfs: save the bio iter for checksum validation in common code
authorChristoph Hellwig <hch@lst.de>
Sat, 21 Jan 2023 06:50:04 +0000 (07:50 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 15 Feb 2023 18:38:51 +0000 (19:38 +0100)
commit7276aa7d38255b40e578267c3634ebc05f5d5236
tree05805675b1b445b3f2f2c6fb2df71c7beb7189db
parent9ba0004bd95e059983b4ca8defad82ab41627e51
btrfs: save the bio iter for checksum validation in common code

All callers of btrfs_submit_bio that want to validate checksums
currently have to store a copy of the iter in the btrfs_bio.  Move
the assignment into common code.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.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/bio.c
fs/btrfs/compression.c
fs/btrfs/extent_io.c
fs/btrfs/inode.c