On 5/5/23 16:16, Hao Xu wrote:
From: Hao Xu <howeyxu@xxxxxxxxxxx> FOPEN_DIRECT_IO is usually set by fuse daemon to indicate need of strong coherency, e.g. network filesystems. Thus shared mmap is disabled since it leverages page cache and may write to it, which may cause inconsistence. But FOPEN_DIRECT_IO can be used not for coherency but to reduce memory footprint as well, e.g. reduce guest memory usage with virtiofs. Therefore, add a new flag FOPEN_DIRECT_IO_SHARED_MMAP to allow shared mmap for these cases. Signed-off-by: Hao Xu <howeyxu@xxxxxxxxxxx>
Hi Miklos, any comments on this one? Thanks, Hao