mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: torvalds@transmeta.com, akpm@digeo.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] remove superflous module use count handling in jbd
Date: Mon, 30 Dec 2002 03:07:57 +0100	[thread overview]
Message-ID: <20021230030757.A13635@lst.de> (raw)

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

                 reply	other threads:[~2002-12-30  1:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021230030757.A13635@lst.de \
    --to=hch@lst.de \
    --cc=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome