]> git.karo-electronics.de Git - mv-sheeva.git/commit
xfs: per-filesystem dquot LRU lists
authorChristoph Hellwig <hch@infradead.org>
Tue, 13 Mar 2012 08:52:34 +0000 (08:52 +0000)
committerBen Myers <bpm@sgi.com>
Wed, 14 Mar 2012 16:09:06 +0000 (11:09 -0500)
commitf8739c3ce2ac9a01515b56026b6a066c0808234b
treec3f7b877b5be6e12c62028de7da46fef3e537dc7
parent48776fd22344ad80adcbac0abc9c0da60c6481d2
xfs: per-filesystem dquot LRU lists

Replace the global dquot lru lists with a per-filesystem one.

Note that the shrinker isn't wire up to the per-superblock VFS shrinker
infrastructure as would have problems summing up and splitting the counts
for inodes and dquots.  I don't think this is a major problem as the quota
cache isn't as interwinded with the inode cache as the dentry cache is,
because an inode that is dropped from the cache will generally release
a dquot reference, but most of the time it won't be the last one.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_dquot.c
fs/xfs/xfs_dquot.h
fs/xfs/xfs_qm.c
fs/xfs/xfs_qm.h