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 | |
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')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_sync.c | 10 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_sync.h | 4 | ||||
-rw-r--r-- | fs/xfs/xfs_mount.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 2 |
4 files changed, 9 insertions, 9 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 | } |
diff --git a/fs/xfs/linux-2.6/xfs_sync.h b/fs/xfs/linux-2.6/xfs_sync.h index 23117a17fdef..c1bcd500509a 100644 --- a/fs/xfs/linux-2.6/xfs_sync.h +++ b/fs/xfs/linux-2.6/xfs_sync.h | |||
@@ -45,7 +45,7 @@ void xfs_quiesce_attr(struct xfs_mount *mp); | |||
45 | void xfs_flush_inode(struct xfs_inode *ip); | 45 | void xfs_flush_inode(struct xfs_inode *ip); |
46 | void xfs_flush_device(struct xfs_inode *ip); | 46 | void xfs_flush_device(struct xfs_inode *ip); |
47 | 47 | ||
48 | int xfs_finish_reclaim(struct xfs_inode *ip, int locked, int sync_mode); | 48 | int xfs_reclaim_inode(struct xfs_inode *ip, int locked, int sync_mode); |
49 | int xfs_finish_reclaim_all(struct xfs_mount *mp, int noblock, int mode); | 49 | int xfs_reclaim_inodes(struct xfs_mount *mp, int noblock, int mode); |
50 | 50 | ||
51 | #endif | 51 | #endif |
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 43e5917465ae..3704baefe2ef 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -1235,7 +1235,7 @@ xfs_unmountfs( | |||
1235 | * need to force the log first. | 1235 | * need to force the log first. |
1236 | */ | 1236 | */ |
1237 | xfs_log_force(mp, (xfs_lsn_t)0, XFS_LOG_FORCE | XFS_LOG_SYNC); | 1237 | xfs_log_force(mp, (xfs_lsn_t)0, XFS_LOG_FORCE | XFS_LOG_SYNC); |
1238 | xfs_finish_reclaim_all(mp, 0, XFS_IFLUSH_ASYNC); | 1238 | xfs_reclaim_inodes(mp, 0, XFS_IFLUSH_ASYNC); |
1239 | 1239 | ||
1240 | XFS_QM_DQPURGEALL(mp, XFS_QMOPT_QUOTALL | XFS_QMOPT_UMOUNTING); | 1240 | XFS_QM_DQPURGEALL(mp, XFS_QMOPT_QUOTALL | XFS_QMOPT_UMOUNTING); |
1241 | 1241 | ||
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index cdcc835bc5a5..07945634923b 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -2834,7 +2834,7 @@ xfs_reclaim( | |||
2834 | xfs_ilock(ip, XFS_ILOCK_EXCL); | 2834 | xfs_ilock(ip, XFS_ILOCK_EXCL); |
2835 | xfs_iflock(ip); | 2835 | xfs_iflock(ip); |
2836 | xfs_iflags_set(ip, XFS_IRECLAIMABLE); | 2836 | xfs_iflags_set(ip, XFS_IRECLAIMABLE); |
2837 | return xfs_finish_reclaim(ip, 1, XFS_IFLUSH_DELWRI_ELSE_SYNC); | 2837 | return xfs_reclaim_inode(ip, 1, XFS_IFLUSH_DELWRI_ELSE_SYNC); |
2838 | } else { | 2838 | } else { |
2839 | xfs_mount_t *mp = ip->i_mount; | 2839 | xfs_mount_t *mp = ip->i_mount; |
2840 | 2840 | ||