From: Erez Zadok Date: Fri, 6 Aug 2010 05:48:52 +0000 (-0400) Subject: Unionfs: update fsync prototype X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=ceb69ae95f4302c330ea642301290525fdd54b05;p=unionfs-2.6.39.y.git Unionfs: update fsync prototype Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/copyup.c b/fs/unionfs/copyup.c index 9c7b2acb17b..bba3a754185 100644 --- a/fs/unionfs/copyup.c +++ b/fs/unionfs/copyup.c @@ -326,8 +326,7 @@ static int __copyup_reg_data(struct dentry *dentry, kfree(buf); if (!err) - err = output_file->f_op->fsync(output_file, - new_lower_dentry, 0); + err = output_file->f_op->fsync(output_file, 0); if (err) goto out_close_out; diff --git a/fs/unionfs/file.c b/fs/unionfs/file.c index 46eaa904005..5a8f4e0774b 100644 --- a/fs/unionfs/file.c +++ b/fs/unionfs/file.c @@ -188,10 +188,11 @@ out: 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; @@ -224,9 +225,7 @@ int unionfs_fsync(struct file *file, struct dentry *dentry, int datasync) 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); diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h index 99335a3499b..d49c8343a54 100644 --- a/fs/unionfs/union.h +++ b/fs/unionfs/union.h @@ -416,8 +416,7 @@ extern int unionfs_file_release(struct inode *inode, struct file *file); 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 */