Whamcloud - gitweb
LU-1347 style: removes obsolete EXPORT_SYMTAB macros v2
[fs/lustre-release.git] / lustre / obdclass / lu_ref.c
index 6deddf7..19a5b35 100644 (file)
@@ -71,7 +71,7 @@
        }                                                               \
 } while (0)
 
-static cfs_mem_cache_t *lu_ref_link_kmem;
+static struct kmem_cache *lu_ref_link_kmem;
 
 static struct lu_kmem_descr lu_ref_caches[] = {
         {
@@ -188,7 +188,7 @@ static struct lu_ref_link *lu_ref_add_context(struct lu_ref *ref,
 void lu_ref_add(struct lu_ref *ref, const char *scope, const void *source)
 {
        cfs_might_sleep();
-       lu_ref_add_context(ref, CFS_ALLOC_STD, scope, source);
+       lu_ref_add_context(ref, GFP_IOFS, scope, source);
 }
 EXPORT_SYMBOL(lu_ref_add);
 
@@ -211,7 +211,7 @@ EXPORT_SYMBOL(lu_ref_add_at);
 void lu_ref_add_atomic(struct lu_ref *ref, const char *scope,
                       const void *source)
 {
-       lu_ref_add_context(ref, CFS_ALLOC_ATOMIC, scope, source);
+       lu_ref_add_context(ref, GFP_ATOMIC, scope, source);
 }
 EXPORT_SYMBOL(lu_ref_add_atomic);