aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fuse/dir.c')
-rw-r--r--fs/fuse/dir.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
index 9b43fd46aaad..73792d65b6cf 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
@@ -617,6 +617,12 @@ static int fuse_dir_release(struct inode *inode, struct file *file)
617 return fuse_release_common(inode, file, 1); 617 return fuse_release_common(inode, file, 1);
618} 618}
619 619
620static int fuse_dir_fsync(struct file *file, struct dentry *de, int datasync)
621{
622 /* nfsd can call this with no file */
623 return file ? fuse_fsync_common(file, de, datasync, 1) : 0;
624}
625
620static unsigned iattr_to_fattr(struct iattr *iattr, struct fuse_attr *fattr) 626static unsigned iattr_to_fattr(struct iattr *iattr, struct fuse_attr *fattr)
621{ 627{
622 unsigned ivalid = iattr->ia_valid; 628 unsigned ivalid = iattr->ia_valid;
@@ -934,6 +940,7 @@ static struct file_operations fuse_dir_operations = {
934 .readdir = fuse_readdir, 940 .readdir = fuse_readdir,
935 .open = fuse_dir_open, 941 .open = fuse_dir_open,
936 .release = fuse_dir_release, 942 .release = fuse_dir_release,
943 .fsync = fuse_dir_fsync,
937}; 944};
938 945
939static struct inode_operations fuse_common_inode_operations = { 946static struct inode_operations fuse_common_inode_operations = {