Whamcloud - gitweb
b=16893,18503
[fs/lustre-release.git] / lustre / llite / remote_perm.c
index 420d0fa..08c4bc1 100644 (file)
@@ -63,7 +63,7 @@ static inline struct ll_remote_perm *alloc_ll_remote_perm(void)
 {
         struct ll_remote_perm *lrp;
 
-        OBD_SLAB_ALLOC(lrp, ll_remote_perm_cachep, GFP_KERNEL, sizeof(*lrp));
+        OBD_SLAB_ALLOC_PTR_GFP(lrp, ll_remote_perm_cachep, GFP_KERNEL);
         if (lrp)
                 INIT_HLIST_NODE(&lrp->lrp_list);
         return lrp;