Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8c6feb8e authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Gerrit - the friendly Code Review server
Browse files

fuse: Flush files on wb close



Any write request requires a file handle to report to the userspace. Thus
when we close a file (and free the fuse_file with this info) we have to
flush all the outstanding dirty pages.

filemap_write_and_wait() is enough because every page under fuse writeback
is accounted in ff->count. This delays actual close until all fuse wb is
completed.

In case of "write cache" turned off, the flush is ensured by fuse_vma_close().

Change-Id: I3f8793f46a0fc2263b2e42b5f367048452e6dcce
Signed-off-by: default avatarMaxim Patlasov <MPatlasov@parallels.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
Git-commit:  e7cc133c370f541fa16723ad7df24de375c26fce
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git


Signed-off-by: default avatarNikhilesh Reddy <reddyn@codeaurora.org>
parent 82354dd7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment