summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trans.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2012-02-01 13:57:20 +0000
committerBen Myers <bpm@sgi.com>2012-02-10 12:38:09 -0600
commit92b2e5b31dd2ad2c9273578c2289d17f417fe32d (patch)
tree312cdaf3479d943234d2a887a4395aa9626f6442 /fs/xfs/xfs_trans.c
parent4177af3a8a6f119484c7903845c6693d7381c13e (diff)
downloadop-kernel-dev-92b2e5b31dd2ad2c9273578c2289d17f417fe32d.zip
op-kernel-dev-92b2e5b31dd2ad2c9273578c2289d17f417fe32d.tar.gz
xfs: use a normal shrinker for the dquot freelist
Stop reusing dquots from the freelist when allocating new ones directly, and implement a shrinker that actually follows the specifications for the interface. The shrinker implementation is still highly suboptimal at this point, but we can gradually work on it. This also fixes an bug in the previous lock ordering, where we would take the hash and dqlist locks inside of the freelist lock against the normal lock ordering. This is only solvable by introducing the dispose list, and thus not when using direct reclaim of unused dquots for new allocations. As a side-effect the quota upper bound and used to free ratio values in /proc/fs/xfs/xqm are set to 0 as these values don't make any sense in the new world order. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Ben Myers <bpm@sgi.com> (cherry picked from commit 04da0c8196ac0b12fb6b84f4b7a51ad2fa56d869)
Diffstat (limited to 'fs/xfs/xfs_trans.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud