return err;
}
-int unionfs_fsync(struct file *file, struct dentry *dentry, int datasync)
+int unionfs_fsync(struct file *file, int datasync)
{
int bindex, bstart, bend;
struct file *lower_file;
+ struct dentry *dentry = file->f_path.dentry;
struct dentry *lower_dentry;
struct dentry *parent;
struct inode *lower_inode, *inode;
lower_file = unionfs_lower_file_idx(file, bindex);
lower_dentry = unionfs_lower_dentry_idx(dentry, bindex);
mutex_lock(&lower_inode->i_mutex);
- err = lower_inode->i_fop->fsync(lower_file,
- lower_dentry,
- datasync);
+ err = lower_inode->i_fop->fsync(lower_file, datasync);
if (!err && bindex == bstart)
fsstack_copy_attr_times(inode, lower_inode);
mutex_unlock(&lower_inode->i_mutex);
extern int unionfs_flush(struct file *file, fl_owner_t id);
extern long unionfs_ioctl(struct file *file, unsigned int cmd,
unsigned long arg);
-extern int unionfs_fsync(struct file *file, struct dentry *dentry,
- int datasync);
+extern int unionfs_fsync(struct file *file, int datasync);
extern int unionfs_fasync(int fd, struct file *file, int flag);
/* Inode operations */