]> Gentwo Git Trees - linux/.git/commit
fs/ntfs3: check minimum alignment for direct I/O
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 30 Oct 2025 20:45:33 +0000 (23:45 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 17 Nov 2025 08:09:13 +0000 (09:09 +0100)
commitd8e1e0d33d975952e65945c9dd68c76c7f946435
tree7525a352dce488a5dcad0364ea0dd9c366cabc78
parentae91dfe38966fa30d713e705a69bf6c5c7f4c2aa
fs/ntfs3: check minimum alignment for direct I/O

Add a check for minimum alignment when performing direct I/O reads. If the
file offset or user buffer is not aligned to the device's logical block
size, fall back to buffered I/O instead of continuing with unaligned direct I/O.

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/file.c
fs/ntfs3/ntfs_fs.h
fs/ntfs3/super.c