diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2007-10-18 06:07:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-18 17:37:31 -0400 |
commit | 6ff958edbf39c014eb06b65ad25b736be08c4e63 (patch) | |
tree | f87af1ae11b321cfa38c25378229f25942797385 /fs/fuse/fuse_i.h | |
parent | 17637cbaba592076c221dc045ca78422b4af6290 (diff) |
fuse: add atomic open+truncate support
This patch allows fuse filesystems to implement open(..., O_TRUNC) as a single
request, instead of separate truncate and open requests.
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 'fs/fuse/fuse_i.h')
-rw-r--r-- | fs/fuse/fuse_i.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index ffbcadaa7d67..b24fc9b386f8 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h | |||
@@ -320,6 +320,9 @@ struct fuse_conn { | |||
320 | /** Do readpages asynchronously? Only set in INIT */ | 320 | /** Do readpages asynchronously? Only set in INIT */ |
321 | unsigned async_read : 1; | 321 | unsigned async_read : 1; |
322 | 322 | ||
323 | /** Do not send separate SETATTR request before open(O_TRUNC) */ | ||
324 | unsigned atomic_o_trunc : 1; | ||
325 | |||
323 | /* | 326 | /* |
324 | * The following bitfields are only for optimization purposes | 327 | * The following bitfields are only for optimization purposes |
325 | * and hence races in setting them will not cause malfunction | 328 | * and hence races in setting them will not cause malfunction |