]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] remove superflous module use count handling in jbd
authorChristoph Hellwig <hch@lst.de>
Sun, 29 Dec 2002 10:06:39 +0000 (02:06 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 29 Dec 2002 10:06:39 +0000 (02:06 -0800)
journal_init_common is always called from ext3 which already makes
jbd.ko unloadable by relying on exported functions.

fs/jbd/journal.c

index 0fa6fcfe61b0348d8406896894d4153bda24ad52..d2f5935ef97291e32a685196cd089bd6ae99a61b 100644 (file)
@@ -694,8 +694,6 @@ static journal_t * journal_init_common (void)
        journal_t *journal;
        int err;
 
-       MOD_INC_USE_COUNT;
-
        journal = jbd_kmalloc(sizeof(*journal), GFP_KERNEL);
        if (!journal)
                goto fail;
@@ -724,7 +722,6 @@ static journal_t * journal_init_common (void)
        }
        return journal;
 fail:
-       MOD_DEC_USE_COUNT;
        return NULL;
 }
 
@@ -1131,7 +1128,6 @@ void journal_destroy (journal_t *journal)
 
        unlock_journal(journal);
        kfree(journal);
-       MOD_DEC_USE_COUNT;
 }