From 4637d8fee7b5f58542ae31460dbdf79764b2c03a Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 20 Nov 2006 06:26:13 +0000 Subject: [PATCH] lu: use vmalloc() to allocate hash table. --- lustre/obdclass/lu_object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/obdclass/lu_object.c b/lustre/obdclass/lu_object.c index 6f94857..699ac1d 100644 --- a/lustre/obdclass/lu_object.c +++ b/lustre/obdclass/lu_object.c @@ -594,7 +594,7 @@ int lu_site_init(struct lu_site *s, struct lu_device *top) for (bits = lu_htable_order(), size = 1 << bits; (s->ls_hash = - cfs_alloc(size * sizeof s->ls_hash[0], OBD_ALLOC_MASK)) == NULL; + cfs_alloc_large(size * sizeof s->ls_hash[0])) == NULL; --bits, size >>= 1) { /* * Scale hash table down, until allocation succeeds. @@ -630,7 +630,7 @@ void lu_site_fini(struct lu_site *s) int i; for (i = 0; i < s->ls_hash_size; i++) LASSERT(hlist_empty(&s->ls_hash[i])); - cfs_free(s->ls_hash); + cfs_free_large(s->ls_hash); s->ls_hash = NULL; } if (s->ls_top_dev != NULL) { -- 1.8.3.1