]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ocfs2/dlm: Rename slabcache dlm_mle_cache to o2dlm_mle
authorSunil Mushran <sunil.mushran@oracle.com>
Mon, 10 Mar 2008 22:16:19 +0000 (15:16 -0700)
committerMark Fasheh <mfasheh@suse.com>
Fri, 18 Apr 2008 15:56:08 +0000 (08:56 -0700)
This patch renames dlm_mle_slabcache to prevent namespace clashes with fs/dlm.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/dlm/dlmdomain.c
fs/ocfs2/dlm/dlmmaster.c

index 0879d86113e347d2706d215223b81bda575cc002..2ce620742f9e04c67352dfec04f999112cb3c34f 100644 (file)
@@ -1816,8 +1816,10 @@ static int __init dlm_init(void)
        dlm_print_version();
 
        status = dlm_init_mle_cache();
-       if (status)
+       if (status) {
+               mlog(ML_ERROR, "Could not create o2dlm_mle slabcache\n");
                return -1;
+       }
 
        status = dlm_register_net_handlers();
        if (status) {
index ea6b8957786062ad91ab213155fc44ea078724b1..90797c591018d7fe0b4a6d8b043fc8090e4ffe40 100644 (file)
@@ -507,7 +507,7 @@ static void dlm_mle_node_up(struct dlm_ctxt *dlm,
 
 int dlm_init_mle_cache(void)
 {
-       dlm_mle_cache = kmem_cache_create("dlm_mle_cache",
+       dlm_mle_cache = kmem_cache_create("o2dlm_mle",
                                          sizeof(struct dlm_master_list_entry),
                                          0, SLAB_HWCACHE_ALIGN,
                                          NULL);