diff options
author | Christoph Hellwig <[email protected]> | 2023-06-08 11:10:25 +0200 |
---|---|---|
committer | David Sterba <[email protected]> | 2023-06-13 00:01:00 +0200 |
commit | 7833b865953c8e62abc76a3261c04132b2fb69de (patch) | |
tree | 0f6161f5cafb24f8533b990731fa82dda3da481c /drivers/fpga/fpga-bridge.c | |
parent | 79b8ee702c918f1936e17cc53e14bec388ce1045 (diff) |
btrfs: fix iomap_begin length for nocow writes
can_nocow_extent can reduce the len passed in, which needs to be
propagated to btrfs_dio_iomap_begin so that iomap does not submit
more data then is mapped.
This problems exists since the btrfs_get_blocks_direct helper was added
in commit c5794e51784a ("btrfs: Factor out write portion of
btrfs_get_blocks_direct"), but the ordered_extent splitting added in
commit b73a6fd1b1ef ("btrfs: split partial dio bios before submit")
added a WARN_ON that made a syzkaller test fail.
Reported-by: [email protected]
Fixes: c5794e51784a ("btrfs: Factor out write portion of btrfs_get_blocks_direct")
CC: [email protected] # 6.1+
Tested-by: [email protected]
Reviewed-by: Filipe Manana <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions