diff options
author | Jan Kara <jack@suse.cz> | 2025-09-01 13:27:40 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2025-09-26 08:36:08 -0400 |
commit | 963845748fe67125006859229487b45485564db7 (patch) | |
tree | a6c2dec20ed7dec27469822232406073b843d520 /scripts/kernel-doc.py | |
parent | 46c22a8bb4cb03211da1100d7ee4a2005bf77c70 (diff) |
ext4: fail unaligned direct IO write with EINVAL
Commit bc264fea0f6f ("iomap: support incremental iomap_iter advances")
changed the error handling logic in iomap_iter(). Previously any error
from iomap_dio_bio_iter() got propagated to userspace, after this commit
if ->iomap_end returns error, it gets propagated to userspace instead of
an error from iomap_dio_bio_iter(). This results in unaligned writes to
ext4 to silently fallback to buffered IO instead of erroring out.
Now returning ENOTBLK for DIO writes from ext4_iomap_end() seems
unnecessary these days. It is enough to return ENOTBLK from
ext4_iomap_begin() when we don't support DIO write for that particular
file offset (due to hole).
Fixes: bc264fea0f6f ("iomap: support incremental iomap_iter advances")
Cc: stable@kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Message-ID: <20250901112739.32484-2-jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'scripts/kernel-doc.py')
0 files changed, 0 insertions, 0 deletions