fuse: Always flush the page cache before FOPEN_DIRECT_IO write

[ Upstream commit 1ce120dcef ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Bernd Schubert 2025-10-23 00:21:18 +02:00 • committed by Greg Kroah-Hartman
commit b88dd8517e