X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fllite%2Fsuper25.c;h=358b769d369c7bc9192a7ffe4ae38ecd58be1b65;hp=b86010129fc71919240f63e00071227eae081c33;hb=711e142d055fda62be482f74f2f73acac5e7e453;hpb=b401ba0c214b184424146dda994470aa3c4356c9 diff --git a/lustre/llite/super25.c b/lustre/llite/super25.c index b860101..358b769 100644 --- a/lustre/llite/super25.c +++ b/lustre/llite/super25.c @@ -26,7 +26,7 @@ * GPL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved + * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. */ /* @@ -38,7 +38,6 @@ #include #include -#include #include #include #include @@ -74,7 +73,7 @@ int ll_init_inodecache(void) { ll_inode_cachep = cfs_mem_cache_create("lustre_inode_cache", sizeof(struct ll_inode_info), - 0, SLAB_HWCACHE_ALIGN); + 0, CFS_SLAB_HWCACHE_ALIGN); if (ll_inode_cachep == NULL) return -ENOMEM; return 0; @@ -125,7 +124,7 @@ static int __init init_lustre_lite(void) return -ENOMEM; ll_file_data_slab = cfs_mem_cache_create("ll_file_data", sizeof(struct ll_file_data), 0, - SLAB_HWCACHE_ALIGN); + CFS_SLAB_HWCACHE_ALIGN); if (ll_file_data_slab == NULL) { ll_destroy_inodecache(); return -ENOMEM; @@ -143,7 +142,7 @@ static int __init init_lustre_lite(void) ll_rmtperm_hash_cachep = cfs_mem_cache_create("ll_rmtperm_hash_cache", REMOTE_PERM_HASHSIZE * - sizeof(struct list_head), + sizeof(cfs_list_t), 0, 0); if (ll_rmtperm_hash_cachep == NULL) { cfs_mem_cache_destroy(ll_remote_perm_cachep); @@ -162,7 +161,7 @@ static int __init init_lustre_lite(void) lustre_register_client_process_config(ll_process_config); - ll_get_random_bytes(seed, sizeof(seed)); + cfs_get_random_bytes(seed, sizeof(seed)); /* Nodes with small feet have little entropy * the NID for this node gives the most entropy in the low bits */ @@ -175,8 +174,8 @@ static int __init init_lustre_lite(void) } } - do_gettimeofday(&tv); - ll_srand(tv.tv_sec ^ seed[0], tv.tv_usec ^ seed[1]); + cfs_gettimeofday(&tv); + cfs_srand(tv.tv_sec ^ seed[0], tv.tv_usec ^ seed[1]); init_timer(&ll_capa_timer); ll_capa_timer.function = ll_capa_timer_callback;