been checked in only in Phil's LDLM branch and not in main.
LBUG();
RETURN(NULL);
}
- OBD_ALLOC(ns->ns_hash, sizeof(*ns->ns_hash) * RES_HASH_SIZE);
+ ns->ns_hash = vmalloc(sizeof(*ns->ns_hash) * RES_HASH_SIZE);
if (!ns->ns_hash) {
OBD_FREE(ns, sizeof(*ns));
LBUG();
}
}
- OBD_FREE(ns->ns_hash, sizeof(struct list_head) * RES_HASH_SIZE);
+ vfree(ns->ns_hash /* , sizeof(struct list_head) * RES_HASH_SIZE */);
OBD_FREE(ns, sizeof(*ns));
return ELDLM_OK;