diff options
author | David Chinner <david@fromorbit.com> | 2008-10-30 02:06:28 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@sgi.com> | 2008-10-30 02:06:28 -0400 |
commit | 75c68f411b1242c8fdaf731078fdd4e77b14981d (patch) | |
tree | 776eab26d76e14dc0478015d1f352c5d2bea9daa /fs/xfs/xfs_inode.h | |
parent | a167b17e899a930758506bbc18748078d6fd8c89 (diff) |
[XFS] Remove xfs_iflush_all and clean up xfs_finish_reclaim_all()
xfs_iflush_all() walks the m_inodes list to find inodes that need
reclaiming. We already have such a list - the m_del_inodes list. Replace
xfs_iflush_all() with a call to xfs_finish_reclaim_all() and clean up
xfs_finish_reclaim_all() to handle the different flush modes now needed.
Originally based on a patch from Christoph Hellwig.
Version 3 o rediff against new linux-2.6/xfs_sync.c code
Version 2 o revert xfs_syncsub() inode reclaim behaviour back to original
code o xfs_quiesce_fs() should use XFS_IFLUSH_DELWRI_ELSE_ASYNC, not
XFS_IFLUSH_ASYNC, to prevent change of behaviour.
SGI-PV: 988139
SGI-Modid: xfs-linux-melb:xfs-kern:32284a
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_inode.h')
-rw-r--r-- | fs/xfs/xfs_inode.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index a8f1e6833aa6..104623b7ec6e 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h | |||
@@ -503,7 +503,7 @@ uint xfs_ilock_map_shared(xfs_inode_t *); | |||
503 | void xfs_iunlock_map_shared(xfs_inode_t *, uint); | 503 | void xfs_iunlock_map_shared(xfs_inode_t *, uint); |
504 | void xfs_ireclaim(xfs_inode_t *); | 504 | void xfs_ireclaim(xfs_inode_t *); |
505 | int xfs_finish_reclaim(xfs_inode_t *, int, int); | 505 | int xfs_finish_reclaim(xfs_inode_t *, int, int); |
506 | int xfs_finish_reclaim_all(struct xfs_mount *, int); | 506 | int xfs_finish_reclaim_all(struct xfs_mount *, int, int); |
507 | 507 | ||
508 | /* | 508 | /* |
509 | * xfs_inode.c prototypes. | 509 | * xfs_inode.c prototypes. |
@@ -530,7 +530,6 @@ void xfs_iext_realloc(xfs_inode_t *, int, int); | |||
530 | void xfs_ipin(xfs_inode_t *); | 530 | void xfs_ipin(xfs_inode_t *); |
531 | void xfs_iunpin(xfs_inode_t *); | 531 | void xfs_iunpin(xfs_inode_t *); |
532 | int xfs_iflush(xfs_inode_t *, uint); | 532 | int xfs_iflush(xfs_inode_t *, uint); |
533 | void xfs_iflush_all(struct xfs_mount *); | ||
534 | void xfs_ichgtime(xfs_inode_t *, int); | 533 | void xfs_ichgtime(xfs_inode_t *, int); |
535 | xfs_fsize_t xfs_file_last_byte(xfs_inode_t *); | 534 | xfs_fsize_t xfs_file_last_byte(xfs_inode_t *); |
536 | void xfs_lock_inodes(xfs_inode_t **, int, uint); | 535 | void xfs_lock_inodes(xfs_inode_t **, int, uint); |