diff options
author | Christoph Hellwig <hch@lst.de> | 2009-06-08 09:35:27 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@brick.lst.de> | 2009-06-08 09:35:27 -0400 |
commit | fe588ed32867b42e0d906db558ca92fd9f8b128e (patch) | |
tree | 4d5c6a5e34ebf1a0c2a82d3d1c08c272d5823264 /fs/xfs/linux-2.6/xfs_sync.c | |
parent | 75f3cb1393133682958db6f157e1b6473e5a366b (diff) |
xfs: use generic inode iterator in xfs_qm_dqrele_all_inodes
Use xfs_inode_ag_iterator instead of opencoding the inode walk in the
quota code. Mark xfs_inode_ag_iterator and xfs_sync_inode_valid non-static
to allow using them from the quota code.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_sync.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_sync.c b/fs/xfs/linux-2.6/xfs_sync.c index 9798643feb3b..a3d2e7713068 100644 --- a/fs/xfs/linux-2.6/xfs_sync.c +++ b/fs/xfs/linux-2.6/xfs_sync.c | |||
@@ -141,7 +141,7 @@ restart: | |||
141 | return last_error; | 141 | return last_error; |
142 | } | 142 | } |
143 | 143 | ||
144 | STATIC int | 144 | int |
145 | xfs_inode_ag_iterator( | 145 | xfs_inode_ag_iterator( |
146 | struct xfs_mount *mp, | 146 | struct xfs_mount *mp, |
147 | int (*execute)(struct xfs_inode *ip, | 147 | int (*execute)(struct xfs_inode *ip, |
@@ -167,7 +167,7 @@ xfs_inode_ag_iterator( | |||
167 | } | 167 | } |
168 | 168 | ||
169 | /* must be called with pag_ici_lock held and releases it */ | 169 | /* must be called with pag_ici_lock held and releases it */ |
170 | STATIC int | 170 | int |
171 | xfs_sync_inode_valid( | 171 | xfs_sync_inode_valid( |
172 | struct xfs_inode *ip, | 172 | struct xfs_inode *ip, |
173 | struct xfs_perag *pag) | 173 | struct xfs_perag *pag) |