]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/fuse/dir.c
drop unused dentry argument to ->fsync
[net-next-2.6.git] / fs / fuse / dir.c
index 4787ae6c5c1c5aac632c871502ca4a99823dd3bb..3cdc5f78a406357a7e4bcbffe5783facd35c7236 100644 (file)
@@ -1156,10 +1156,9 @@ static int fuse_dir_release(struct inode *inode, struct file *file)
        return 0;
 }
 
-static int fuse_dir_fsync(struct file *file, struct dentry *de, int datasync)
+static int fuse_dir_fsync(struct file *file, int datasync)
 {
-       /* nfsd can call this with no file */
-       return file ? fuse_fsync_common(file, de, datasync, 1) : 0;
+       return fuse_fsync_common(file, datasync, 1);
 }
 
 static bool update_mtime(unsigned ivalid)