* [2.6 patch] dm: remove unused functions
@ 2004-10-28 22:14 Adrian Bunk
2004-10-29 0:15 ` Adrian Bunk
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2004-10-28 22:14 UTC (permalink / raw)
To: dm-devel; +Cc: linux-kernel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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);
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFBgW81mfzqmE8StAARAoYsAKDBEpKORD8iJPSKS6UmDZsm/Uwa6ACfXgi0
oYRbUOT1YyHHFq0lkpHhpW0=
=z6pR
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
* [2.6 patch] dm: remove unused functions
2004-10-28 22:14 [2.6 patch] dm: remove unused functions Adrian Bunk
@ 2004-10-29 0:15 ` Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2004-10-29 0:15 UTC (permalink / raw)
To: dm-devel; +Cc: linux-kernel
[ 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);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-29 0:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-28 22:14 [2.6 patch] dm: remove unused functions Adrian Bunk
2004-10-29 0:15 ` Adrian Bunk
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.