Whamcloud - gitweb
LU-73 RHEL6 support.
[fs/lustre-release.git] / lustre / obdclass / lustre_handles.c
index c0b4012..6213536 100644 (file)
@@ -220,7 +220,7 @@ int class_handle_init(void)
 
         LASSERT(handle_hash == NULL);
 
-        OBD_VMALLOC(handle_hash, sizeof(*bucket) * HANDLE_HASH_SIZE);
+        OBD_ALLOC_LARGE(handle_hash, sizeof(*bucket) * HANDLE_HASH_SIZE);
         if (handle_hash == NULL)
                 return -ENOMEM;
 
@@ -271,7 +271,7 @@ void class_handle_cleanup(void)
 
         count = cleanup_all_handles();
 
-        OBD_VFREE(handle_hash, sizeof(*handle_hash) * HANDLE_HASH_SIZE);
+        OBD_FREE_LARGE(handle_hash, sizeof(*handle_hash) * HANDLE_HASH_SIZE);
         handle_hash = NULL;
 
         if (count != 0)