[PATCH] remove superflous module use count handling in jbd

From: Christoph Hellwig (hch@lst.de)
Date: Sun Dec 29 2002 - 21:07:57 EST


journal_init_common is always called from ext3 which already makes
jbd.ko unloadable by relying on exported functions.

--- 1.22/fs/jbd/journal.c Thu Oct 10 22:39:43 2002
+++ edited/fs/jbd/journal.c Mon Dec 30 02:16:47 2002
@@ -694,8 +694,6 @@
         journal_t *journal;
         int err;
 
- MOD_INC_USE_COUNT;
-
         journal = jbd_kmalloc(sizeof(*journal), GFP_KERNEL);
         if (!journal)
                 goto fail;
@@ -724,7 +722,6 @@
         }
         return journal;
 fail:
- MOD_DEC_USE_COUNT;
         return NULL;
 }
 
@@ -1131,7 +1128,6 @@
 
         unlock_journal(journal);
         kfree(journal);
- MOD_DEC_USE_COUNT;
 }
 
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Dec 31 2002 - 22:00:15 EST