Whamcloud - gitweb
fix typo founded by maxim.
authorshadow <shadow>
Fri, 24 Apr 2009 09:04:38 +0000 (09:04 +0000)
committershadow <shadow>
Fri, 24 Apr 2009 09:04:38 +0000 (09:04 +0000)
Branch HEAD

lustre/include/lustre_capa.h

index 7f65a44..4e12392 100644 (file)
@@ -192,7 +192,7 @@ static inline struct obd_capa *alloc_capa(int site)
         if (unlikely(site != CAPA_SITE_CLIENT && site != CAPA_SITE_SERVER))
                 return ERR_PTR(-EINVAL);
 
         if (unlikely(site != CAPA_SITE_CLIENT && site != CAPA_SITE_SERVER))
                 return ERR_PTR(-EINVAL);
 
-        OBD_SLAB_ALLOC(ocapa, capa_cachep, GFP_KERNEL, sizeof(*ocapa));
+        OBD_SLAB_ALLOC_PTR(ocapa, capa_cachep);
         if (unlikely(!ocapa))
                 return ERR_PTR(-ENOMEM);
 
         if (unlikely(!ocapa))
                 return ERR_PTR(-ENOMEM);