All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Clements <Paul.Clements@SteelEye.com>
To: linux-raid@vger.kernel.org
Subject: [PATCH 2.5.68] eliminate deprecated MOD_INC_USE_COUNT/MOD_DEC_USE_COUNT in md.c
Date: Tue, 22 Apr 2003 15:19:54 -0400	[thread overview]
Message-ID: <3EA595D9.E4CBB684@SteelEye.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 124 bytes --]

Following is a simple patch to remove deprecated MOD_INC_USE_COUNT from
md.c.

If it looks good, please apply.

Thanks,
Paul

[-- Attachment #2: md_mod_unsafe.diff --]
[-- Type: text/plain, Size: 540 bytes --]

--- md.c.PRISTINE	2003-04-22 12:59:37.000000000 -0400
+++ md.c	2003-04-22 12:59:50.000000000 -0400
@@ -181,7 +181,6 @@ static void mddev_put(mddev_t *mddev)
 		list_del(&mddev->all_mddevs);
 		mddev_map[mdidx(mddev)] = NULL;
 		kfree(mddev);
-		MOD_DEC_USE_COUNT;
 	}
 	spin_unlock(&all_mddevs_lock);
 }
@@ -203,7 +202,6 @@ static mddev_t * mddev_find(int unit)
 		mddev_map[unit] = new;
 		list_add(&new->all_mddevs, &all_mddevs);
 		spin_unlock(&all_mddevs_lock);
-		MOD_INC_USE_COUNT;
 		return new;
 	}
 	spin_unlock(&all_mddevs_lock);

             reply	other threads:[~2003-04-22 19:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-22 19:19 Paul Clements [this message]
2003-04-23  0:00 ` [PATCH 2.5.68] eliminate deprecated MOD_INC_USE_COUNT/MOD_DEC_USE_COUNT in md.c Neil Brown
2003-04-23 16:07   ` Paul Clements
2003-05-02  5:02     ` Neil Brown
2003-05-02 22:00       ` Paul Clements
2003-05-09 21:19         ` Daniel McNeil
2003-05-10  4:16           ` Paul Clements
2003-05-12  7:13             ` Paul Clements
2003-05-12 18:23               ` Daniel McNeil
2003-04-23 17:52   ` [PATCH 2.5.68] eliminate interdependency between fs/partitions and md driver and enable persistent superblocks/raidautorun with modular md Paul Clements
2003-04-23 17:52     ` Paul Clements

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=3EA595D9.E4CBB684@SteelEye.com \
    --to=paul.clements@steeleye.com \
    --cc=linux-raid@vger.kernel.org \
    /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 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.