diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-03-13 04:52:35 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-03-14 12:09:06 -0400 |
commit | 9f920f116426806bfa34c1422742e1bf7b7a2b4b (patch) | |
tree | 3ec0a4f006dc10ed56e5bec1b605f5ecbb3a3275 /fs/xfs/xfs_quota_priv.h | |
parent | f8739c3ce2ac9a01515b56026b6a066c0808234b (diff) |
xfs: use per-filesystem radix trees for dquot lookup
Replace the global hash tables for looking up in-memory dquot structures
with per-filesystem radix trees to allow scaling to a large number of
in-memory dquot structures.
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_quota_priv.h')
-rw-r--r-- | fs/xfs/xfs_quota_priv.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/xfs/xfs_quota_priv.h b/fs/xfs/xfs_quota_priv.h index 94a3d927d716..6d86219d93da 100644 --- a/fs/xfs/xfs_quota_priv.h +++ b/fs/xfs/xfs_quota_priv.h | |||
@@ -24,17 +24,6 @@ | |||
24 | */ | 24 | */ |
25 | #define XFS_DQITER_MAP_SIZE 10 | 25 | #define XFS_DQITER_MAP_SIZE 10 |
26 | 26 | ||
27 | /* | ||
28 | * Hash into a bucket in the dquot hash table, based on <mp, id>. | ||
29 | */ | ||
30 | #define XFS_DQ_HASHVAL(mp, id) (((__psunsigned_t)(mp) + \ | ||
31 | (__psunsigned_t)(id)) & \ | ||
32 | (xfs_Gqm->qm_dqhashmask - 1)) | ||
33 | #define XFS_DQ_HASH(mp, id, type) (type == XFS_DQ_USER ? \ | ||
34 | (xfs_Gqm->qm_usr_dqhtable + \ | ||
35 | XFS_DQ_HASHVAL(mp, id)) : \ | ||
36 | (xfs_Gqm->qm_grp_dqhtable + \ | ||
37 | XFS_DQ_HASHVAL(mp, id))) | ||
38 | #define XFS_IS_DQUOT_UNINITIALIZED(dqp) ( \ | 27 | #define XFS_IS_DQUOT_UNINITIALIZED(dqp) ( \ |
39 | !dqp->q_core.d_blk_hardlimit && \ | 28 | !dqp->q_core.d_blk_hardlimit && \ |
40 | !dqp->q_core.d_blk_softlimit && \ | 29 | !dqp->q_core.d_blk_softlimit && \ |