Skip to content
Commit 80e4f252 authored by Hao Xu's avatar Hao Xu Committed by Miklos Szeredi
Browse files

fuse: invalidate page cache pages before direct write



In FOPEN_DIRECT_IO, page cache may still be there for a file since private
mmap is allowed.  Direct write should respect that and invalidate the
corresponding pages so that page cache readers don't get stale data.

Signed-off-by: default avatarHao Xu <howeyxu@tencent.com>
Tested-by: default avatarJiachen Zhang <zhangjiachen.jaycee@bytedance.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent b8bd342d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment