#include <linux/buffer_head.h>
#include <linux/module.h>
#include <linux/init.h>
+#include <linux/gfs2_ondisk.h>
#include <asm/semaphore.h>
#include "gfs2.h"
+#include "lm_interface.h"
+#include "incore.h"
#include "ops_fstype.h"
#include "sys.h"
+#include "util.h"
/**
* init_gfs2_fs - Register GFS2 as a filesystem
if (error)
goto fail;
+ error = register_filesystem(&gfs2meta_fs_type);
+ if (error)
+ goto fail_unregister;
+
printk("GFS2 (built %s %s) installed\n", __DATE__, __TIME__);
return 0;
- fail:
+fail_unregister:
+ unregister_filesystem(&gfs2_fs_type);
+fail:
if (gfs2_bufdata_cachep)
kmem_cache_destroy(gfs2_bufdata_cachep);
static void __exit exit_gfs2_fs(void)
{
unregister_filesystem(&gfs2_fs_type);
+ unregister_filesystem(&gfs2meta_fs_type);
kmem_cache_destroy(gfs2_bufdata_cachep);
kmem_cache_destroy(gfs2_inode_cachep);