fuse: Invalidate the page cache after FOPEN_DIRECT_IO write

generic_file_direct_write() also does this and has a large
comment about.

Reproducer here is xfstest's generic/209, which is exactly to
have competing DIO write and cached IO read.

Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
Bernd Schubert 2025-10-23 00:21:17 +02:00 • committed by Miklos Szeredi
commit b359af8275