author | Christoph Hellwig
<hch@infradead.org> 2009-09-26 19:55:04 UTC |
committer | Alex Elder
<aelder@sgi.com> 2009-10-08 17:02:48 UTC |
parent | 8e69ce147127a0235e8d1f2b75ea214be78c61b3 |
fs/xfs/linux-2.6/xfs_file.c | +1 | -8 |
diff --git a/fs/xfs/linux-2.6/xfs_file.c b/fs/xfs/linux-2.6/xfs_file.c index 988d8f87bc0..6d65baf15a1 100644 --- a/fs/xfs/linux-2.6/xfs_file.c +++ b/fs/xfs/linux-2.6/xfs_file.c @@ -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);