All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] remove superflous module use count handling in jbd
@ 2002-12-30  2:07 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2002-12-30  2:07 UTC (permalink / raw)
  To: torvalds, akpm; +Cc: linux-kernel

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;
 }
 
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-30  1:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-30  2:07 [PATCH] remove superflous module use count handling in jbd Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.