Skip to content

Commit

Permalink
[GFS2] don't panic needlessly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Dobriyan authored and Steven Whitehouse committed Nov 6, 2006
1 parent d1ed6a3 commit eb1dc33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/gfs2/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eb1dc33

Please sign in to comment.