diff options
author | Dave Chinner | 2010-01-11 00:51:45 +0100 |
---|---|---|
committer | Alex Elder | 2010-01-15 20:43:55 +0100 |
commit | c8e20be020f234c8d492927a424a7d8bbefd5b5d (patch) | |
tree | ced84d52bf87d72d36a65e3ddca6b4fc4b7f819f /fs/xfs/quota | |
parent | Linux 2.6.33-rc4 (diff) | |
download | kernel-qcow2-linux-c8e20be020f234c8d492927a424a7d8bbefd5b5d.tar.gz kernel-qcow2-linux-c8e20be020f234c8d492927a424a7d8bbefd5b5d.tar.xz kernel-qcow2-linux-c8e20be020f234c8d492927a424a7d8bbefd5b5d.zip |
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/quota')
-rw-r--r-- | fs/xfs/quota/xfs_qm_syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/quota/xfs_qm_syscalls.c b/fs/xfs/quota/xfs_qm_syscalls.c index 71af76fe8a23..873e07e29074 100644 --- a/fs/xfs/quota/xfs_qm_syscalls.c +++ b/fs/xfs/quota/xfs_qm_syscalls.c @@ -891,7 +891,7 @@ xfs_qm_dqrele_all_inodes( uint flags) { ASSERT(mp->m_quotainfo); - xfs_inode_ag_iterator(mp, xfs_dqrele_inode, flags, XFS_ICI_NO_TAG); + xfs_inode_ag_iterator(mp, xfs_dqrele_inode, flags, XFS_ICI_NO_TAG, 0); } /*------------------------------------------------------------------------*/ |