All of lore.kernel.org
 help / color / mirror / Atom feed
* device-mapper: remove unused bs_bio_init()
@ 2005-01-21 17:58 Alasdair G Kergon
  2005-01-21 18:52 ` Adrian Bunk
  0 siblings, 1 reply; 2+ messages in thread
From: Alasdair G Kergon @ 2005-01-21 17:58 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

Remove unused bs_bio_init().

Signed-Off-By: Alasdair G Kergon <agk@redhat.com>
--- diff/drivers/md/dm-io.c	2005-01-12 15:21:22.000000000 +0000
+++ source/drivers/md/dm-io.c	2005-01-12 18:58:09.000000000 +0000
@@ -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)
 {

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-21 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-21 17:58 device-mapper: remove unused bs_bio_init() Alasdair G Kergon
2005-01-21 18:52 ` 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.