Commit f21caa1f authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

[PATCH] remove superflous module use count handling in jbd

journal_init_common is always called from ext3 which already makes
jbd.ko unloadable by relying on exported functions.
parent abf9164a
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment