Skip to content
Commit 36ea2337 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

fuse: write inode in fuse_vma_close() instead of fuse_release()



Fuse ->release() is otherwise asynchronous for the reason that it can
happen in contexts unrelated to close/munmap.

Inode is already written back from fuse_flush().  Add it to
fuse_vma_close() as well to make sure inode dirtying from mmaps also get
written out before the file is released.

Also add error handling.

Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 5c791fe1
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