fuse: add helper for asynchronous writes
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 18 Oct 2007 10:07:03 +0000 (03:07 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:31 +0000 (14:37 -0700)
commitb25e82e5673c750116e8b01a4fc7d09be7809f8c
tree03d23ccbca6e87ba98efeba445ff714455dba0bb
parent93a8c3cd9e9834dc5f5c373336f3a0065521152d
fuse: add helper for asynchronous writes

This patch adds a new helper function fuse_write_fill() which makes it
possible to send WRITE requests asynchronously.

A new flag for WRITE requests is also added which indicates that this a write
from the page cache, and not a "normal" file write.

This patch is in preparation for writable mmap support.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/file.c
fs/fuse/fuse_i.h
include/linux/fuse.h