Whamcloud - gitweb
LU-3652 luref: Fix building
[fs/lustre-release.git] / lustre / obdclass / lu_ref.c
index 6deddf7..96a4722 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[] = {
         {
@@ -155,7 +155,7 @@ void lu_ref_fini(struct lu_ref *ref)
 EXPORT_SYMBOL(lu_ref_fini);
 
 static struct lu_ref_link *lu_ref_add_context(struct lu_ref *ref,
-                                              enum cfs_alloc_flags flags,
+                                              int flags,
                                               const char *scope,
                                               const void *source)
 {
@@ -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);