diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2007-10-18 06:07:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-18 17:37:31 -0400 |
commit | b25e82e5673c750116e8b01a4fc7d09be7809f8c (patch) | |
tree | 03d23ccbca6e87ba98efeba445ff714455dba0bb /include/linux/fuse.h | |
parent | 93a8c3cd9e9834dc5f5c373336f3a0065521152d (diff) |
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>
Diffstat (limited to 'include/linux/fuse.h')
-rw-r--r-- | include/linux/fuse.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h index 015a8b15a388..6f4a31266cd5 100644 --- a/include/linux/fuse.h +++ b/include/linux/fuse.h | |||
@@ -119,6 +119,13 @@ struct fuse_file_lock { | |||
119 | */ | 119 | */ |
120 | #define FUSE_LK_FLOCK (1 << 0) | 120 | #define FUSE_LK_FLOCK (1 << 0) |
121 | 121 | ||
122 | /** | ||
123 | * WRITE flags | ||
124 | * | ||
125 | * FUSE_WRITE_CACHE: delayed write from page cache, file handle is guessed | ||
126 | */ | ||
127 | #define FUSE_WRITE_CACHE (1 << 0) | ||
128 | |||
122 | enum fuse_opcode { | 129 | enum fuse_opcode { |
123 | FUSE_LOOKUP = 1, | 130 | FUSE_LOOKUP = 1, |
124 | FUSE_FORGET = 2, /* no reply */ | 131 | FUSE_FORGET = 2, /* no reply */ |