Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148847
b: refs/heads/master
c: b0710cc
h: refs/heads/master
i:
  148845: 35b97c7
  148843: a9cbded
  148839: b4868ae
  148831: 2c559a9
v: v3
  • Loading branch information
Christoph Hellwig authored and Christoph Hellwig committed Jun 8, 2009
1 parent 98896ba commit d4d757c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 075fe1028699f6a280545dfc2cfc5ac82d555c8c
refs/heads/master: b0710ccc6d9fa8fb908b5f6d1b0782a09d80e24f
8 changes: 4 additions & 4 deletions trunk/fs/xfs/linux-2.6/xfs_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ xfs_sync_inode_data(
xfs_iunlock(ip, XFS_IOLOCK_SHARED);

out_wait:
if (flags & SYNC_IOWAIT)
if (flags & SYNC_WAIT)
xfs_ioend_wait(ip);
IRELE(ip);
return error;
Expand Down Expand Up @@ -278,7 +278,7 @@ xfs_sync_data(
{
int error;

ASSERT((flags & ~(SYNC_TRYLOCK|SYNC_WAIT|SYNC_IOWAIT)) == 0);
ASSERT((flags & ~(SYNC_TRYLOCK|SYNC_WAIT)) == 0);

error = xfs_inode_ag_iterator(mp, xfs_sync_inode_data, flags,
XFS_ICI_NO_TAG);
Expand Down Expand Up @@ -422,7 +422,7 @@ xfs_quiesce_data(
xfs_filestream_flush(mp);

/* push and block */
xfs_sync_data(mp, SYNC_WAIT|SYNC_IOWAIT);
xfs_sync_data(mp, SYNC_WAIT);
xfs_qm_sync(mp, SYNC_WAIT);

/* write superblock and hoover up shutdown errors */
Expand Down Expand Up @@ -535,7 +535,7 @@ xfs_flush_inodes_work(
{
struct inode *inode = arg;
xfs_sync_data(mp, SYNC_TRYLOCK);
xfs_sync_data(mp, SYNC_TRYLOCK | SYNC_IOWAIT);
xfs_sync_data(mp, SYNC_TRYLOCK | SYNC_WAIT);
iput(inode);
}

Expand Down
1 change: 0 additions & 1 deletion trunk/fs/xfs/linux-2.6/xfs_sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ typedef struct xfs_sync_work {

#define SYNC_WAIT 0x0004 /* wait for i/o to complete */
#define SYNC_BDFLUSH 0x0008 /* BDFLUSH is calling -- don't block */
#define SYNC_IOWAIT 0x0010 /* wait for all I/O to complete */
#define SYNC_TRYLOCK 0x0020 /* only try to lock inodes */

int xfs_syncd_init(struct xfs_mount *mp);
Expand Down

0 comments on commit d4d757c

Please sign in to comment.