xfs: cleanup up xfs_log_force calling conventions
Remove the XFS_LOG_FORCE argument which was always set, and the XFS_LOG_URGE define, which was never used. Split xfs_log_force into a two helpers - xfs_log_force which forces the whole log, and xfs_log_force_lsn which forces up to the specified LSN. The underlying implementations already were entirely separate, as were the users. Also re-indent the new _xfs_log_force/_xfs_log_force which previously had a weird coding style. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
This commit is contained in:
parent
4139b3b337
commit
a14a348bff
14 changed files with 195 additions and 213 deletions
|
@ -1455,7 +1455,7 @@ xfs_unmountfs(
|
|||
* push out the iclog we will never get that unlocked. hence we
|
||||
* need to force the log first.
|
||||
*/
|
||||
xfs_log_force(mp, (xfs_lsn_t)0, XFS_LOG_FORCE | XFS_LOG_SYNC);
|
||||
xfs_log_force(mp, XFS_LOG_SYNC);
|
||||
xfs_reclaim_inodes(mp, XFS_IFLUSH_ASYNC);
|
||||
|
||||
xfs_qm_unmount(mp);
|
||||
|
@ -1465,7 +1465,7 @@ xfs_unmountfs(
|
|||
* that nothing is pinned. This is important because bflush()
|
||||
* will skip pinned buffers.
|
||||
*/
|
||||
xfs_log_force(mp, (xfs_lsn_t)0, XFS_LOG_FORCE | XFS_LOG_SYNC);
|
||||
xfs_log_force(mp, XFS_LOG_SYNC);
|
||||
|
||||
xfs_binval(mp->m_ddev_targp);
|
||||
if (mp->m_rtdev_targp) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue