fuse: sync release from munmap If enabled with FOPEN_SYNC_RELEASE, then try synchronous release from munmap() as well. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 162ea5b..a91ca7c 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c
@@ -2084,6 +2084,7 @@ static void fuse_vma_close(struct vm_area_struct *vma) { filemap_write_and_wait(vma->vm_file->f_mapping); + fuse_try_sync_release(vma->vm_file, FUSE_RELEASE); } /* @@ -2143,7 +2144,7 @@ invalidate_inode_pages2(file->f_mapping); - return generic_file_mmap(file, vma); + return fuse_file_mmap(file, vma); } static int convert_fuse_file_lock(const struct fuse_file_lock *ffl,