drop unused dentry argument to ->fsync
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:

committed by
Al Viro

parent
cc967be547
commit
7ea8085910
@@ -100,10 +100,10 @@ xfs_iozero(
|
||||
STATIC int
|
||||
xfs_file_fsync(
|
||||
struct file *file,
|
||||
struct dentry *dentry,
|
||||
int datasync)
|
||||
{
|
||||
struct xfs_inode *ip = XFS_I(dentry->d_inode);
|
||||
struct inode *inode = file->f_mapping->host;
|
||||
struct xfs_inode *ip = XFS_I(inode);
|
||||
struct xfs_trans *tp;
|
||||
int error = 0;
|
||||
int log_flushed = 0;
|
||||
@@ -140,8 +140,8 @@ xfs_file_fsync(
|
||||
* might gets cleared when the inode gets written out via the AIL
|
||||
* or xfs_iflush_cluster.
|
||||
*/
|
||||
if (((dentry->d_inode->i_state & I_DIRTY_DATASYNC) ||
|
||||
((dentry->d_inode->i_state & I_DIRTY_SYNC) && !datasync)) &&
|
||||
if (((inode->i_state & I_DIRTY_DATASYNC) ||
|
||||
((inode->i_state & I_DIRTY_SYNC) && !datasync)) &&
|
||||
ip->i_update_core) {
|
||||
/*
|
||||
* Kick off a transaction to log the inode core to get the
|
||||
@@ -868,7 +868,7 @@ write_retry:
|
||||
mutex_lock(&inode->i_mutex);
|
||||
xfs_ilock(ip, iolock);
|
||||
|
||||
error2 = -xfs_file_fsync(file, file->f_path.dentry,
|
||||
error2 = -xfs_file_fsync(file,
|
||||
(file->f_flags & __O_SYNC) ? 0 : 1);
|
||||
if (!error)
|
||||
error = error2;
|
||||
|
Reference in New Issue
Block a user