Whamcloud - gitweb
fix build on rhel5/ia64.
[fs/lustre-release.git] / lustre / include / lustre_capa.h
index add2982..c7e6732 100644 (file)
@@ -165,11 +165,11 @@ static inline struct obd_capa *alloc_capa(int site)
 #ifdef __KERNEL__
         struct obd_capa *ocapa;
 
-        OBD_SLAB_ALLOC(ocapa, capa_cachep, SLAB_KERNEL, sizeof(*ocapa));
+        OBD_SLAB_ALLOC(ocapa, capa_cachep, GFP_KERNEL, sizeof(*ocapa));
         if (ocapa) {
                 atomic_set(&ocapa->c_refc, 0);
                 spin_lock_init(&ocapa->c_lock);
-                INIT_LIST_HEAD(&ocapa->c_list);
+                CFS_INIT_LIST_HEAD(&ocapa->c_list);
                 ocapa->c_site = site;
         }
         return ocapa;