From: braam Date: Mon, 16 Aug 1999 22:41:25 +0000 (+0000) Subject: fix the module unloading bug. X-Git-Tag: 0.4.2~811 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=90c1c216a65e37ea4a05f5bca31fb2da768ff519;p=fs%2Flustre-release.git fix the module unloading bug. --- diff --git a/lustre/obdfs/super.c b/lustre/obdfs/super.c index f7b21a1..70f9c0f 100644 --- a/lustre/obdfs/super.c +++ b/lustre/obdfs/super.c @@ -28,12 +28,6 @@ #include <../obd/linux/sim_obd.h> #include -/* 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 *); @@ -281,6 +275,7 @@ void cleanup_module(void) ENTRY; obdfs_sysctl_clean(); + unregister_filesystem(&obdfs_fs_type); } void obdfs_psdev_dec_use_count(void) {