[GFS2] don't panic needlessly
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 27 Oct 2006 23:03:48 +0000 (03:03 +0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 6 Nov 2006 13:58:52 +0000 (08:58 -0500)
First, SLAB_PANIC is unjustified. Second, all error propagating and backing out
is in place.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/main.c

index 21508a13bb78d75312d2f018fa1b0a20163425b6..9889c1eacec186efe383f9c9801563123bb0511d 100644 (file)
@@ -84,8 +84,8 @@ static int __init init_gfs2_fs(void)
 
        gfs2_inode_cachep = kmem_cache_create("gfs2_inode",
                                              sizeof(struct gfs2_inode),
-                                             0, (SLAB_RECLAIM_ACCOUNT|
-                                             SLAB_PANIC|SLAB_MEM_SPREAD),
+                                             0,  SLAB_RECLAIM_ACCOUNT|
+                                                 SLAB_MEM_SPREAD,
                                              gfs2_init_inode_once, NULL);
        if (!gfs2_inode_cachep)
                goto fail;