aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2014-04-28 08:19:23 -0400
committerMiklos Szeredi <mszeredi@suse.cz>2014-04-28 08:19:23 -0400
commit1e18bda86e2dcc4ecb176213ee34649c93ad1396 (patch)
tree0862a86519028449c13b6e4ecd6762d91533341c /fs/fuse/fuse_i.h
parent22401e7b7a686bff02549cd648ba6f73f8dba868 (diff)
fuse: add .write_inode
...and flush mtime from this. This allows us to use the kernel infrastructure for writing out dirty metadata (mtime at this point, but ctime in the next patches and also maybe atime). Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index adfa2d505c1a..d2f10054b9a1 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -119,8 +119,6 @@ enum {
119 FUSE_I_INIT_RDPLUS, 119 FUSE_I_INIT_RDPLUS,
120 /** An operation changing file size is in progress */ 120 /** An operation changing file size is in progress */
121 FUSE_I_SIZE_UNSTABLE, 121 FUSE_I_SIZE_UNSTABLE,
122 /** i_mtime has been updated locally; a flush to userspace needed */
123 FUSE_I_MTIME_DIRTY,
124}; 122};
125 123
126struct fuse_conn; 124struct fuse_conn;
@@ -891,7 +889,8 @@ int fuse_dev_release(struct inode *inode, struct file *file);
891 889
892bool fuse_write_update_size(struct inode *inode, loff_t pos); 890bool fuse_write_update_size(struct inode *inode, loff_t pos);
893 891
894int fuse_flush_mtime(struct file *file, bool nofail); 892int fuse_flush_mtime(struct inode *inode, struct fuse_file *ff);
893int fuse_write_inode(struct inode *inode, struct writeback_control *wbc);
895 894
896int fuse_do_setattr(struct inode *inode, struct iattr *attr, 895int fuse_do_setattr(struct inode *inode, struct iattr *attr,
897 struct file *file); 896 struct file *file);