aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_sync.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_sync.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/linux-2.6/xfs_sync.c b/fs/xfs/linux-2.6/xfs_sync.c
index c1a9a1135073..32abd96b1095 100644
--- a/fs/xfs/linux-2.6/xfs_sync.c
+++ b/fs/xfs/linux-2.6/xfs_sync.c
@@ -227,7 +227,7 @@ xfs_sync_inode_data(
227 xfs_iunlock(ip, XFS_IOLOCK_SHARED); 227 xfs_iunlock(ip, XFS_IOLOCK_SHARED);
228 228
229 out_wait: 229 out_wait:
230 if (flags & SYNC_IOWAIT) 230 if (flags & SYNC_WAIT)
231 xfs_ioend_wait(ip); 231 xfs_ioend_wait(ip);
232 IRELE(ip); 232 IRELE(ip);
233 return error; 233 return error;
@@ -278,7 +278,7 @@ xfs_sync_data(
278{ 278{
279 int error; 279 int error;
280 280
281 ASSERT((flags & ~(SYNC_TRYLOCK|SYNC_WAIT|SYNC_IOWAIT)) == 0); 281 ASSERT((flags & ~(SYNC_TRYLOCK|SYNC_WAIT)) == 0);
282 282
283 error = xfs_inode_ag_iterator(mp, xfs_sync_inode_data, flags, 283 error = xfs_inode_ag_iterator(mp, xfs_sync_inode_data, flags,
284 XFS_ICI_NO_TAG); 284 XFS_ICI_NO_TAG);
@@ -422,7 +422,7 @@ xfs_quiesce_data(
422 xfs_filestream_flush(mp); 422 xfs_filestream_flush(mp);
423 423
424 /* push and block */ 424 /* push and block */
425 xfs_sync_data(mp, SYNC_WAIT|SYNC_IOWAIT); 425 xfs_sync_data(mp, SYNC_WAIT);
426 xfs_qm_sync(mp, SYNC_WAIT); 426 xfs_qm_sync(mp, SYNC_WAIT);
427 427
428 /* write superblock and hoover up shutdown errors */ 428 /* write superblock and hoover up shutdown errors */
@@ -535,7 +535,7 @@ xfs_flush_inodes_work(
535{ 535{
536 struct inode *inode = arg; 536 struct inode *inode = arg;
537 xfs_sync_data(mp, SYNC_TRYLOCK); 537 xfs_sync_data(mp, SYNC_TRYLOCK);
538 xfs_sync_data(mp, SYNC_TRYLOCK | SYNC_IOWAIT); 538 xfs_sync_data(mp, SYNC_TRYLOCK | SYNC_WAIT);
539 iput(inode); 539 iput(inode);
540} 540}
541 541