diff options
author | Nathan Scott <nathans@sgi.com> | 2006-09-27 21:03:05 -0400 |
---|---|---|
committer | Tim Shimmin <tes@sgi.com> | 2006-09-27 21:03:05 -0400 |
commit | efb8ad7e9431a430a75d44288614cf6047ff4baa (patch) | |
tree | cbebf7d8bf1b5f25235756c0aa7ff610d4cb4055 /fs/xfs/quota | |
parent | 3f89243c5b987dd55f8eec6fd54be05887d69bc6 (diff) |
[XFS] Add a debug flag for allocations which are known to be larger than
one page.
SGI-PV: 955302
SGI-Modid: xfs-linux-melb:xfs-kern:26800a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/quota')
-rw-r--r-- | fs/xfs/quota/xfs_qm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/quota/xfs_qm.c b/fs/xfs/quota/xfs_qm.c index e23e45535c48..3f86c7c04648 100644 --- a/fs/xfs/quota/xfs_qm.c +++ b/fs/xfs/quota/xfs_qm.c | |||
@@ -112,17 +112,17 @@ xfs_Gqm_init(void) | |||
112 | { | 112 | { |
113 | xfs_dqhash_t *udqhash, *gdqhash; | 113 | xfs_dqhash_t *udqhash, *gdqhash; |
114 | xfs_qm_t *xqm; | 114 | xfs_qm_t *xqm; |
115 | uint i, hsize, flags = KM_SLEEP | KM_MAYFAIL; | 115 | uint i, hsize, flags = KM_SLEEP | KM_MAYFAIL | KM_LARGE; |
116 | 116 | ||
117 | /* | 117 | /* |
118 | * Initialize the dquot hash tables. | 118 | * Initialize the dquot hash tables. |
119 | */ | 119 | */ |
120 | hsize = XFS_QM_HASHSIZE_HIGH; | 120 | hsize = XFS_QM_HASHSIZE_HIGH; |
121 | while (!(udqhash = kmem_zalloc(hsize * sizeof(xfs_dqhash_t), flags))) { | 121 | while (!(udqhash = kmem_zalloc(hsize * sizeof(*udqhash), flags))) { |
122 | if ((hsize >>= 1) <= XFS_QM_HASHSIZE_LOW) | 122 | if ((hsize >>= 1) <= XFS_QM_HASHSIZE_LOW) |
123 | flags = KM_SLEEP; | 123 | flags = KM_SLEEP; |
124 | } | 124 | } |
125 | gdqhash = kmem_zalloc(hsize * sizeof(xfs_dqhash_t), KM_SLEEP); | 125 | gdqhash = kmem_zalloc(hsize * sizeof(*gdqhash), KM_SLEEP | KM_LARGE); |
126 | ndquot = hsize << 8; | 126 | ndquot = hsize << 8; |
127 | 127 | ||
128 | xqm = kmem_zalloc(sizeof(xfs_qm_t), KM_SLEEP); | 128 | xqm = kmem_zalloc(sizeof(xfs_qm_t), KM_SLEEP); |