diff options
author | David Chinner <david@fromorbit.com> | 2008-10-30 02:15:12 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@sgi.com> | 2008-10-30 02:15:12 -0400 |
commit | 2030b5aba8a4bcaca5aca85968514fa58207d3bd (patch) | |
tree | e01122f234efd0acad9c3217ffae05f023f8b247 /fs/xfs/xfs_vfsops.c | |
parent | bc60a99323b3ec628273b5fa998285c87d464ca6 (diff) |
[XFS] use xfs_sync_inodes rather than xfs_syncsub
Kill the unused arg in xfs_syncsub() and xfs_sync_inodes(). For callers of
xfs_syncsub() that only want to flush inodes, replace xfs_syncsub() with
direct calls to xfs_sync_inodes() as that is all that is being done with
the specific flags being passed in.
SGI-PV: 988140
SGI-Modid: xfs-linux-melb:xfs-kern:32305a
Signed-off-by: David Chinner <david@fromorbit.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Diffstat (limited to 'fs/xfs/xfs_vfsops.c')
-rw-r--r-- | fs/xfs/xfs_vfsops.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c index 0c5ee5ec7ee4..d5396d6f5170 100644 --- a/fs/xfs/xfs_vfsops.c +++ b/fs/xfs/xfs_vfsops.c | |||
@@ -68,15 +68,15 @@ xfs_quiesce_fs( | |||
68 | xfs_flush_buftarg(mp->m_ddev_targp, 0); | 68 | xfs_flush_buftarg(mp->m_ddev_targp, 0); |
69 | xfs_finish_reclaim_all(mp, 0, XFS_IFLUSH_DELWRI_ELSE_ASYNC); | 69 | xfs_finish_reclaim_all(mp, 0, XFS_IFLUSH_DELWRI_ELSE_ASYNC); |
70 | 70 | ||
71 | /* This loop must run at least twice. | 71 | /* |
72 | * The first instance of the loop will flush | 72 | * This loop must run at least twice. The first instance of the loop |
73 | * most meta data but that will generate more | 73 | * will flush most meta data but that will generate more meta data |
74 | * meta data (typically directory updates). | 74 | * (typically directory updates). Which then must be flushed and |
75 | * Which then must be flushed and logged before | 75 | * logged before we can write the unmount record. |
76 | * we can write the unmount record. | ||
77 | */ | 76 | */ |
78 | do { | 77 | do { |
79 | xfs_syncsub(mp, SYNC_INODE_QUIESCE, NULL); | 78 | xfs_log_force(mp, 0, XFS_LOG_FORCE|XFS_LOG_SYNC); |
79 | xfs_sync_inodes(mp, SYNC_INODE_QUIESCE); | ||
80 | pincount = xfs_flush_buftarg(mp->m_ddev_targp, 1); | 80 | pincount = xfs_flush_buftarg(mp->m_ddev_targp, 1); |
81 | if (!pincount) { | 81 | if (!pincount) { |
82 | delay(50); | 82 | delay(50); |