Whamcloud - gitweb
fix the module unloading bug.
authorbraam <braam>
Mon, 16 Aug 1999 22:41:25 +0000 (22:41 +0000)
committerbraam <braam>
Mon, 16 Aug 1999 22:41:25 +0000 (22:41 +0000)
lustre/obdfs/super.c

index f7b21a1..70f9c0f 100644 (file)
 #include <../obd/linux/sim_obd.h>
 #include <obdfs.h>
 
 #include <../obd/linux/sim_obd.h>
 #include <obdfs.h>
 
-/* DEBUGGING! */
-#undef MOD_INC_USE_COUNT
-#define MOD_INC_USE_COUNT
-#undef MOD_DEC_USE_COUNT
-#define MOD_DEC_USE_COUNT
-
 /* VFS super_block ops */
 static struct super_block *obdfs_read_super(struct super_block *, void *, int);
 static void obdfs_read_inode(struct inode *);
 /* VFS super_block ops */
 static struct super_block *obdfs_read_super(struct super_block *, void *, int);
 static void obdfs_read_inode(struct inode *);
@@ -281,6 +275,7 @@ void cleanup_module(void)
         ENTRY;
 
        obdfs_sysctl_clean();
         ENTRY;
 
        obdfs_sysctl_clean();
+       unregister_filesystem(&obdfs_fs_type);
 }
 void obdfs_psdev_dec_use_count(void)
 {
 }
 void obdfs_psdev_dec_use_count(void)
 {