fuse: Turn writeback cache on
authorPavel Emelyanov <xemul@openvz.org>
Thu, 10 Oct 2013 13:12:18 +0000 (17:12 +0400)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 2 Apr 2014 13:38:50 +0000 (15:38 +0200)
commit4d99ff8f12eb20c6cde292f185cb1c8c334ba0ed
treea0668c9f45b4065ee935c1f653d32a11ae6ef788
parentea8cd33390fafc1eca06a26e6a9c7bf1d386526f
fuse: Turn writeback cache on

Introduce a bit kernel and userspace exchange between each-other on
the init stage and turn writeback on if the userspace want this and
mount option 'allow_wbcache' is present (controlled by fusermount).

Also add each writable file into per-inode write list and call the
generic_file_aio_write to make use of the Linux page cache engine.

Signed-off-by: Maxim Patlasov <MPatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/file.c
fs/fuse/inode.c
include/uapi/linux/fuse.h