diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2009-04-28 10:56:39 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2009-04-28 10:56:39 -0400 |
commit | 8b0797a4984de4406de25808e1a424344de543e4 (patch) | |
tree | 9d473ecf26171ccfdcee4e0a617e9bc994813397 /fs/fuse/fuse_i.h | |
parent | 91fe96b403f8a0a4a8a045a39b1bd549b0da7941 (diff) |
fuse: don't use inode in fuse_sync_release()
Make fuse_sync_release() a generic helper function that doesn't need a
struct inode pointer. This makes it suitable for use by CUSE.
Change return value of fuse_release_common() from int to void.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r-- | fs/fuse/fuse_i.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 429e669d7859..ef2e1f3780b5 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h | |||
@@ -535,13 +535,12 @@ struct fuse_file *fuse_file_get(struct fuse_file *ff); | |||
535 | void fuse_file_free(struct fuse_file *ff); | 535 | void fuse_file_free(struct fuse_file *ff); |
536 | void fuse_finish_open(struct inode *inode, struct file *file); | 536 | void fuse_finish_open(struct inode *inode, struct file *file); |
537 | 537 | ||
538 | /** Fill in ff->reserved_req with a RELEASE request */ | 538 | void fuse_sync_release(struct fuse_file *ff, int flags); |
539 | void fuse_release_fill(struct fuse_file *ff, int flags, int opcode); | ||
540 | 539 | ||
541 | /** | 540 | /** |
542 | * Send RELEASE or RELEASEDIR request | 541 | * Send RELEASE or RELEASEDIR request |
543 | */ | 542 | */ |
544 | int fuse_release_common(struct inode *inode, struct file *file, int isdir); | 543 | void fuse_release_common(struct file *file, int opcode); |
545 | 544 | ||
546 | /** | 545 | /** |
547 | * Send FSYNC or FSYNCDIR request | 546 | * Send FSYNC or FSYNCDIR request |