]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/dlm/memory.c
atomic.h: add atomic64 cmpxchg, xchg and add_unless to x86_64
[linux-2.6-omap-h63xx.git] / fs / dlm / memory.c
index 5352b03ff5aa81f9af31c081965f7ae8dd81f90e..f858fef6e41cf32167b3b5d6634458fc62e8d1e7 100644 (file)
@@ -76,9 +76,7 @@ struct dlm_lkb *allocate_lkb(struct dlm_ls *ls)
 {
        struct dlm_lkb *lkb;
 
-       lkb = kmem_cache_alloc(lkb_cache, GFP_KERNEL);
-       if (lkb)
-               memset(lkb, 0, sizeof(*lkb));
+       lkb = kmem_cache_zalloc(lkb_cache, GFP_KERNEL);
        return lkb;
 }