summaryrefslogtreecommitdiff
path: root/fs/xfs/linux-2.6/xfs_sync.h
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2010-01-10 23:51:45 +0000
committerAlex Elder <aelder@sgi.com>2010-01-15 13:43:55 -0600
commitc8e20be020f234c8d492927a424a7d8bbefd5b5d (patch)
treeced84d52bf87d72d36a65e3ddca6b4fc4b7f819f /fs/xfs/linux-2.6/xfs_sync.h
parent7284ce6c9f6153d1777df5f310c959724d1bd446 (diff)
xfs: reclaim inodes under a write lock
Make the inode tree reclaim walk exclusive to avoid races with concurrent sync walkers and lookups. This is a version of a patch posted by Christoph Hellwig that avoids all the code duplication. Signed-off-by: Dave Chinner <david@fromorbit.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_sync.h')
-rw-r--r--fs/xfs/linux-2.6/xfs_sync.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_sync.h b/fs/xfs/linux-2.6/xfs_sync.h
index a500b4d91835..ea932b43335d 100644
--- a/fs/xfs/linux-2.6/xfs_sync.h
+++ b/fs/xfs/linux-2.6/xfs_sync.h
@@ -54,6 +54,6 @@ void __xfs_inode_clear_reclaim_tag(struct xfs_mount *mp, struct xfs_perag *pag,
int xfs_sync_inode_valid(struct xfs_inode *ip, struct xfs_perag *pag);
int xfs_inode_ag_iterator(struct xfs_mount *mp,
int (*execute)(struct xfs_inode *ip, struct xfs_perag *pag, int flags),
- int flags, int tag);
+ int flags, int tag, int write_lock);
#endif