diff options
| author | Christoph Hellwig <[email protected]> | 2023-06-08 09:10:25 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2023-06-12 22:01:00 +0000 |
| commit | 7833b865953c8e62abc76a3261c04132b2fb69de (patch) | |
| tree | 0f6161f5cafb24f8533b990731fa82dda3da481c /net/nsh/nsh.c | |
| parent | btrfs: scrub: also report errors hit during the initial read (diff) | |
| download | kernel-7833b865953c8e62abc76a3261c04132b2fb69de.tar.gz kernel-7833b865953c8e62abc76a3261c04132b2fb69de.zip | |
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 'net/nsh/nsh.c')
0 files changed, 0 insertions, 0 deletions
