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

fuse: write back dirty pages before direct write in direct_io_relax mode



In direct_io_relax mode, there can be shared mmaped files and thus dirty
pages in its page cache.  Therefore those dirty pages should be written
back to backend before direct io to avoid data loss.

Signed-off-by: default avatarHao Xu <howeyxu@tencent.com>
Reviewed-by: default avatarJiachen Zhang <zhangjiachen.jaycee@bytedance.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent e78662e8
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