xfs: reclaim inodes under a write lock
authorDave Chinner <david@fromorbit.com>
Sun, 10 Jan 2010 23:51:45 +0000 (23:51 +0000)
committerAlex Elder <aelder@sgi.com>
Fri, 15 Jan 2010 19:43:55 +0000 (13:43 -0600)
commitc8e20be020f234c8d492927a424a7d8bbefd5b5d
treeced84d52bf87d72d36a65e3ddca6b4fc4b7f819f
parent7284ce6c9f6153d1777df5f310c959724d1bd446
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>
fs/xfs/linux-2.6/xfs_sync.c
fs/xfs/linux-2.6/xfs_sync.h
fs/xfs/quota/xfs_qm_syscalls.c