From: Adrian Bunk <bunk@stusta.de>
To: Andrew Morton <akpm@osdl.org>
Cc: dm-devel@redhat.com, linux-kernel@vger.kernel.org
Subject: [2.6 patch] dm: remove unused functions (fwd)
Date: Mon, 29 Nov 2004 03:29:40 +0100 [thread overview]
Message-ID: <20041129022940.GQ4390@stusta.de> (raw)
The patch forwarded below still applies and compiles against
2.6.10-rc2-mm3.
Please apply or comment on it.
----- Forwarded message from Adrian Bunk <bunk@stusta.de> -----
Date: Fri, 29 Oct 2004 02:15:49 +0200
From: Adrian Bunk <bunk@stusta.de>
To: dm-devel@redhat.com
Cc: linux-kernel@vger.kernel.org
Subject: [2.6 patch] dm: remove unused functions
[ this time without the problems due to a digital signature... ]
The patch below removes two unsed functions from dm code.
diffstat output:
drivers/md/dm-io.c | 16 ----------------
drivers/md/dm-snap.c | 5 -----
2 files changed, 21 deletions(-)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.10-rc1-mm1-full/drivers/md/dm-io.c.old 2004-10-28 23:03:35.000000000 +0200
+++ linux-2.6.10-rc1-mm1-full/drivers/md/dm-io.c 2004-10-28 23:03:44.000000000 +0200
@@ -149,22 +149,6 @@
return 0;
}
-static inline void bs_bio_init(struct bio *bio)
-{
- bio->bi_next = NULL;
- bio->bi_flags = 1 << BIO_UPTODATE;
- bio->bi_rw = 0;
- bio->bi_vcnt = 0;
- bio->bi_idx = 0;
- bio->bi_phys_segments = 0;
- bio->bi_hw_segments = 0;
- bio->bi_size = 0;
- bio->bi_max_vecs = 0;
- bio->bi_end_io = NULL;
- atomic_set(&bio->bi_cnt, 1);
- bio->bi_private = NULL;
-}
-
static unsigned _bio_count = 0;
struct bio *bio_set_alloc(struct bio_set *bs, int gfp_mask, int nr_iovecs)
{
--- linux-2.6.10-rc1-mm1-full/drivers/md/dm-snap.c.old 2004-10-28 23:04:16.000000000 +0200
+++ linux-2.6.10-rc1-mm1-full/drivers/md/dm-snap.c 2004-10-28 23:04:24.000000000 +0200
@@ -271,11 +271,6 @@
return e;
}
-static inline void free_exception(struct exception *e)
-{
- kmem_cache_free(exception_cache, e);
-}
-
static inline struct pending_exception *alloc_pending_exception(void)
{
return mempool_alloc(pending_pool, GFP_NOIO);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
----- End forwarded message -----
next reply other threads:[~2004-11-29 2:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-29 2:29 Adrian Bunk [this message]
2004-11-30 23:05 ` [2.6 patch] dm: remove unused functions (fwd) Alasdair G Kergon
2004-12-01 4:54 ` Adrian Bunk
2004-12-01 14:41 ` [dm-devel] " Kevin Corry
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=20041129022940.GQ4390@stusta.de \
--to=bunk@stusta.de \
--cc=akpm@osdl.org \
--cc=dm-devel@redhat.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox