[PATCH 08/16] fuse: Flush files on wb close -v2

2013-07-11 Thread Maxim Patlasov
From: Pavel Emelyanov 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 i

[PATCH 08/16] fuse: Flush files on wb close

2013-06-29 Thread Maxim Patlasov
From: Pavel Emelyanov 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 i