Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0800703 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Alex Elder
Browse files

xfs: stop calling filemap_fdatawait inside ->fsync



Now that the VFS actually waits for the data I/O to complete before
calling into ->fsync we can stop doing it ourselves.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarAlex Elder <aelder@sgi.com>
Signed-off-by: default avatarAlex Elder <aelder@sgi.com>
parent 8e69ce14
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -176,14 +176,7 @@ xfs_file_fsync(
	struct dentry		*dentry,
	int			datasync)
{
	struct inode		*inode = dentry->d_inode;
	struct xfs_inode	*ip = XFS_I(inode);
	int			error;

	/* capture size updates in I/O completion before writing the inode. */
	error = filemap_fdatawait(inode->i_mapping);
	if (error)
		return error;
	struct xfs_inode	*ip = XFS_I(dentry->d_inode);

	xfs_iflags_clear(ip, XFS_ITRUNCATED);
	return -xfs_fsync(ip);