]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fuse: Always flush the page cache before FOPEN_DIRECT_IO write
authorBernd Schubert <bschubert@ddn.com>
Wed, 22 Oct 2025 22:21:18 +0000 (00:21 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 13 Nov 2025 13:54:05 +0000 (14:54 +0100)
commit1ce120dcefc056ce8af2486cebbb77a458aad4c3
tree24b2b38166173ac3f969f5cc22a532d39444ef35
parentb359af8275a982a458e8df6c6beab1415be1f795
fuse: Always flush the page cache before FOPEN_DIRECT_IO write

This was done as condition on direct_io_allow_mmap, but I believe
this is not right, as a file might be open two times - once with
write-back enabled another time with FOPEN_DIRECT_IO.

Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/file.c