xfs: remove duplicate code from dquot reclaim
authorDave Chinner <dchinner@redhat.com>
Tue, 13 Apr 2010 05:06:50 +0000 (15:06 +1000)
committerAlex Elder <aelder@sgi.com>
Wed, 19 May 2010 14:58:11 +0000 (09:58 -0500)
commit368e136174344c417bad6ff0380b7b3f574bf120
tree1718f3e35b42adbaabf5a65062f2d3f5ecf1ac43
parent3a25404b3fccd41d36b2fda18d86011201608c38
xfs: remove duplicate code from dquot reclaim

The dquot shaker and the free-list reclaim code use exactly the same
algorithm but the code is duplicated and slightly different in each
case. Make the shaker code use the single dquot reclaim code to
remove the code duplication.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/linux-2.6/xfs_trace.h
fs/xfs/quota/xfs_qm.c