]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs/ntfs3: Add missing direct_IO in ntfs_aops_cmpr
authorLizhi Xu <lizhi.xu@windriver.com>
Tue, 15 Apr 2025 09:26:37 +0000 (17:26 +0800)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 28 Apr 2025 09:17:09 +0000 (12:17 +0300)
commit8b26c8c376b29cf29710fbfd093df194cefe26ad
tree9edd8ee03edcc09f98f195694dc0898822b7d069
parentaf5cab0e5b6f8edb0be51a9f47f3f620e0b4fd70
fs/ntfs3: Add missing direct_IO in ntfs_aops_cmpr

The ntfs3 can use the page cache directly, so its address_space_operations
need direct_IO. Exit ntfs_direct_IO() if it is a compressed file.

Fixes: b432163ebd15 ("fs/ntfs3: Update inode->i_mapping->a_ops on compression state")
Reported-by: syzbot+e36cc3297bd3afd25e19@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=e36cc3297bd3afd25e19
Signed-off-by: Lizhi Xu <lizhi.xu@windriver.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/inode.c