[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [dm-devel] 2.4.23-pre7-dm2



On Wednesday 15 October 2003 08:23, Joe Thornber wrote:
> http://people.sistina.com/~thornber/patches/2.4-stable/2.4.23-pre7/2.4.23-p
>re7-dm-2.tar.bz2
>
> Changes since 2.4.23-pre7-dm1
> -----------------------------
>
> Revision 18:
>   Correct the sector calculation in map_buffer().
>

Correct the sector calculation in map_buffer().
--- diff/drivers/md/dm-raid1.c	2003-10-15 13:41:01.000000000 +0100
+++ source/drivers/md/dm-raid1.c	2003-10-15 13:42:37.000000000 +0100
@@ -720,11 +720,7 @@
 static void map_buffer(struct mirror_set *ms,
 		       struct mirror *m, struct buffer_head *bh)
 {
-	sector_t bsize = bh->b_size >> 9;
-	sector_t rsector = bh->b_blocknr * bsize;
-
-	bh->b_rdev = m->dev->dev;
-	bh->b_rsector = m->offset + (rsector - ms->ti->begin);
+	bh->b_rsector = m->offset + (bh->b_rsector - ms->ti->begin);
 }
 
 static void do_reads(struct mirror_set *ms, struct buffer_list *reads)


Doesn't this still need to set bh->b_rdev = m->dev->dev ?

-- 
Kevin Corry
kevcorry us ibm com
http://evms.sourceforge.net/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]