]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
btrfs: use the bbio file offset in btrfs_submit_compressed_read
authorChristoph Hellwig <hch@lst.de>
Fri, 10 Feb 2023 07:48:36 +0000 (08:48 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:14 +0000 (18:01 +0200)
commite7aff33e31610729f0c9c487f0e262cf96e98ebb
tree0a47428ce156d38fef36853f9d5131e0de64cd00
parent798c9fc74d034fca49031efb195e07e59bb926df
btrfs: use the bbio file offset in btrfs_submit_compressed_read

struct btrfs_bio now has a file_offset field set up by all submitters.
Use that in btrfs_submit_compressed_read instead of recalculating the
value.

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/compression.c