[Drbd-dev] [fix] drbd uses wrong API for struct bio

Lars Marowsky-Bree lmb at suse.de
Tue Jan 25 11:05:16 CET 2005


On 2005-01-25T10:58:13, Philipp Reisner <philipp.reisner at linbit.com> wrote:

> When are you taking the code for SuSE ?

Today. We're in a bit of a hurry because we screwed up and shipped the
oopsing drbd in SP1 ;-)

> I guess it would make sense to tag drbd-0.7.8 at that moment, so
> that this time SuSE and the rest of the world have the same
> "drbd-0.7.8" :)

Sure. Attached is the minimal cleanup Jens suggested relative to svn
1732.


Sincerely,
    Lars Marowsky-Brée <lmb at suse.de>

-- 
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX Products GmbH - A Novell Business

-------------- next part --------------
Index: drbd/drbd_compat_wrappers.h
===================================================================
--- drbd/drbd_compat_wrappers.h	(revision 1732)
+++ drbd/drbd_compat_wrappers.h	(working copy)
@@ -471,8 +471,7 @@
 	bio->bi_destructor = NULL;
 	vec->bv_page = page;
 	bio->bi_size = vec->bv_len = PAGE_SIZE;
-	bio->bi_max_vecs = bio->bi_vcnt = 
-	bio->bi_phys_segments = bio->bi_hw_segments = 1;
+	bio->bi_max_vecs = bio->bi_vcnt = 1;
 	vec->bv_offset = 0;
 
 	e->block_id = ID_VACANT;
@@ -504,8 +503,7 @@
 	bio->bi_destructor = NULL;
 	vec->bv_page = page;
 	vec->bv_offset = 0;
-	bio->bi_max_vecs = bio->bi_vcnt = 
-	bio->bi_phys_segments = bio->bi_hw_segments = 1;
+	bio->bi_max_vecs = bio->bi_vcnt = 1;
 
 	bio->bi_bdev = mdev->backing_bdev;
 	bio->bi_private = mdev;


More information about the drbd-dev mailing list