From: Pavel Emelyanov Date: Thu, 10 Oct 2013 13:19:06 +0000 (+0400) Subject: fuse: Flush files on wb close X-Git-Tag: v3.15-rc1~94^2~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7cc133c370f541fa16723ad7df24de375c26fce;p=pandora-kernel.git 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(). Signed-off-by: Maxim Patlasov Signed-off-by: Miklos Szeredi --- Reading git-diff-tree failed