drop unused dentry argument to ->fsync
[linux-2.6-block.git] / fs / hostfs / hostfs_kern.c
index 3a029d8f4cf1d564f0e64c7f1ead796a193769d5..87ac1891a18584a05d56b88572a66b440c7b4766 100644 (file)
@@ -411,9 +411,9 @@ int hostfs_file_open(struct inode *ino, struct file *file)
        return 0;
 }
 
-int hostfs_fsync(struct file *file, struct dentry *dentry, int datasync)
+int hostfs_fsync(struct file *file, int datasync)
 {
-       return fsync_file(HOSTFS_I(dentry->d_inode)->fd, datasync);
+       return fsync_file(HOSTFS_I(file->f_mapping->host)->fd, datasync);
 }
 
 static const struct file_operations hostfs_file_fops = {