Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276648
b: refs/heads/master
c: 5cc361e
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Dec 13, 2011
1 parent 90b2014 commit bceb21b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6f686574cccc2ef66fb38e41f19cedd81e7b4504
refs/heads/master: 5cc361e3b8241989d8240014dbbe6214c9292541
18 changes: 8 additions & 10 deletions trunk/fs/ubifs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2264,19 +2264,12 @@ static int __init ubifs_init(void)
return -EINVAL;
}

err = register_filesystem(&ubifs_fs_type);
if (err) {
ubifs_err("cannot register file system, error %d", err);
return err;
}

err = -ENOMEM;
ubifs_inode_slab = kmem_cache_create("ubifs_inode_slab",
sizeof(struct ubifs_inode), 0,
SLAB_MEM_SPREAD | SLAB_RECLAIM_ACCOUNT,
&inode_slab_ctor);
if (!ubifs_inode_slab)
goto out_reg;
return -ENOMEM;

register_shrinker(&ubifs_shrinker_info);

Expand All @@ -2288,15 +2281,20 @@ static int __init ubifs_init(void)
if (err)
goto out_compr;

err = register_filesystem(&ubifs_fs_type);
if (err) {
ubifs_err("cannot register file system, error %d", err);
goto out_dbg;
}
return 0;

out_dbg:
dbg_debugfs_exit();
out_compr:
ubifs_compressors_exit();
out_shrinker:
unregister_shrinker(&ubifs_shrinker_info);
kmem_cache_destroy(ubifs_inode_slab);
out_reg:
unregister_filesystem(&ubifs_fs_type);
return err;
}
/* late_initcall to let compressors initialize first */
Expand Down

0 comments on commit bceb21b

Please sign in to comment.