diff options
Diffstat (limited to 'fs/xfs/quota/xfs_qm.c')
-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); |