diff options
author | Christoph Hellwig <hch@lst.de> | 2022-12-12 08:37:20 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-02-15 19:38:55 +0100 |
commit | 0d495430db8d704b3a70b244b54d5ee30cf03f69 (patch) | |
tree | 37fa3a96685aa3e34adcbe9b3ce5b4d753ca14a7 /fs/btrfs/zoned.c | |
parent | btrfs: use file_offset to limit bios size in calc_bio_boundaries (diff) | |
download | linux-0d495430db8d704b3a70b244b54d5ee30cf03f69.tar.xz linux-0d495430db8d704b3a70b244b54d5ee30cf03f69.zip |
btrfs: set bbio->file_offset in alloc_new_bio
Instead of digging into the bio_vec in submit_one_bio, set file_offset at
bio allocation time from the provided parameter. This also ensures that
the file_offset is available all the time when building up the bio
payload.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/zoned.c')
0 files changed, 0 insertions, 0 deletions