diff options
author | David Chinner <david@fromorbit.com> | 2008-10-30 02:37:15 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@sgi.com> | 2008-10-30 02:37:15 -0400 |
commit | 1dc3318ae1c1cc11f9fb8279a806de448e2b90e8 (patch) | |
tree | 327c3b269532b180393001eb17fa69cbb838d20d /fs/xfs/linux-2.6/xfs_sync.c | |
parent | fce08f2f3bd0d08feeb4cea70e44aa3471d9bb4c (diff) |
[XFS] rename inode reclaim functions
The function names xfs_finish_reclaim and xfs_finish_reclaim_all are not
very descriptive of what they are reclaiming. Rename to
xfs_reclaim_inode[s] to match the xfs_sync_inodes() function.
SGI-PV: 988142
SGI-Modid: xfs-linux-melb:xfs-kern:32330a
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/linux-2.6/xfs_sync.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_sync.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/linux-2.6/xfs_sync.c b/fs/xfs/linux-2.6/xfs_sync.c index 79038ea55b03..34413ceaea9f 100644 --- a/fs/xfs/linux-2.6/xfs_sync.c +++ b/fs/xfs/linux-2.6/xfs_sync.c | |||
@@ -364,7 +364,7 @@ xfs_quiesce_fs( | |||
364 | int count = 0, pincount; | 364 | int count = 0, pincount; |
365 | 365 | ||
366 | xfs_flush_buftarg(mp->m_ddev_targp, 0); | 366 | xfs_flush_buftarg(mp->m_ddev_targp, 0); |
367 | xfs_finish_reclaim_all(mp, 0, XFS_IFLUSH_DELWRI_ELSE_ASYNC); | 367 | xfs_reclaim_inodes(mp, 0, XFS_IFLUSH_DELWRI_ELSE_ASYNC); |
368 | 368 | ||
369 | /* | 369 | /* |
370 | * This loop must run at least twice. The first instance of the loop | 370 | * This loop must run at least twice. The first instance of the loop |
@@ -505,7 +505,7 @@ xfs_sync_worker( | |||
505 | 505 | ||
506 | if (!(mp->m_flags & XFS_MOUNT_RDONLY)) { | 506 | if (!(mp->m_flags & XFS_MOUNT_RDONLY)) { |
507 | xfs_log_force(mp, (xfs_lsn_t)0, XFS_LOG_FORCE); | 507 | xfs_log_force(mp, (xfs_lsn_t)0, XFS_LOG_FORCE); |
508 | xfs_finish_reclaim_all(mp, 1, XFS_IFLUSH_DELWRI_ELSE_ASYNC); | 508 | xfs_reclaim_inodes(mp, 0, XFS_IFLUSH_DELWRI_ELSE_ASYNC); |
509 | /* dgc: errors ignored here */ | 509 | /* dgc: errors ignored here */ |
510 | error = XFS_QM_DQSYNC(mp, SYNC_BDFLUSH); | 510 | error = XFS_QM_DQSYNC(mp, SYNC_BDFLUSH); |
511 | error = xfs_sync_fsdata(mp, SYNC_BDFLUSH); | 511 | error = xfs_sync_fsdata(mp, SYNC_BDFLUSH); |
@@ -584,7 +584,7 @@ xfs_syncd_stop( | |||
584 | } | 584 | } |
585 | 585 | ||
586 | int | 586 | int |
587 | xfs_finish_reclaim( | 587 | xfs_reclaim_inode( |
588 | xfs_inode_t *ip, | 588 | xfs_inode_t *ip, |
589 | int locked, | 589 | int locked, |
590 | int sync_mode) | 590 | int sync_mode) |
@@ -645,7 +645,7 @@ xfs_finish_reclaim( | |||
645 | } | 645 | } |
646 | 646 | ||
647 | int | 647 | int |
648 | xfs_finish_reclaim_all( | 648 | xfs_reclaim_inodes( |
649 | xfs_mount_t *mp, | 649 | xfs_mount_t *mp, |
650 | int noblock, | 650 | int noblock, |
651 | int mode) | 651 | int mode) |
@@ -665,7 +665,7 @@ restart: | |||
665 | } | 665 | } |
666 | } | 666 | } |
667 | XFS_MOUNT_IUNLOCK(mp); | 667 | XFS_MOUNT_IUNLOCK(mp); |
668 | if (xfs_finish_reclaim(ip, noblock, mode)) | 668 | if (xfs_reclaim_inode(ip, noblock, mode)) |
669 | delay(1); | 669 | delay(1); |
670 | goto restart; | 670 | goto restart; |
671 | } | 671 | } |