static int __init init_hfs_fs(void) { int err = init_inodecache(); if (err) goto out1; hfs_cat_init(); err = register_filesystem(&hfs_fs); if (err) goto out; return 0; out: hfs_cat_free(); destroy_inodecache(); out1: return err; }
static void __exit exit_hfs_fs(void) { hfs_cat_free(); unregister_filesystem(&hfs_fs); }
static void __exit exit_hfs_fs(void) { hfs_cat_free(); unregister_filesystem(&hfs_fs); destroy_inodecache(); }