Commit 0fdf977
btrfs: fix direct I/O writes for split bios on zoned devices
When a bio is split in btrfs_submit_direct, dip->file_offset contains
the file offset for the first bio. But this means the start value used
in btrfs_end_dio_bio to record the write location for zone devices is
incorrect for subsequent bios.
CC: stable@vger.kernel.org # 5.16+
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 00d8252 commit 0fdf977
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7865 | 7865 | | |
7866 | 7866 | | |
7867 | 7867 | | |
| 7868 | + | |
7868 | 7869 | | |
7869 | 7870 | | |
7870 | 7871 | | |
| |||
7875 | 7876 | | |
7876 | 7877 | | |
7877 | 7878 | | |
7878 | | - | |
| 7879 | + | |
7879 | 7880 | | |
7880 | 7881 | | |
7881 | 7882 | | |
7882 | 7883 | | |
7883 | | - | |
| 7884 | + | |
7884 | 7885 | | |
7885 | 7886 | | |
7886 | 7887 | | |
| |||
0 commit comments