PATCH: 2.2.16: MD Linear driver ofs_by_one bug fix

From: Anton Altaparmakov (aia21@cus.cam.ac.uk)
Date: Sun Jun 11 2000 - 21:21:33 EST


To follow up from my previous post, attached is the same patch backported
to 2.2.16 kernel, should apply cleanly to the 2.2.17pre1 as well.

Regards,

        Anton

-- 
Anton Altaparmakov
Christ's College         eMail: AntonA@bigfoot.com
Cambridge CB2 3BU          WWW: http://www-stu.christs.cam.ac.uk/~aia21/
United Kingdom             ICQ: 8561279

--- linux-2.2.16-old/drivers/block/linear.c Mon Jun 12 03:01:36 2000 +++ linux-2.2.16/drivers/block/linear.c Mon Jun 12 03:02:55 2000 @@ -4,6 +4,7 @@ Copyright (C) 1994-96 Marc ZYNGIER <zyngier@ufr-info-p7.ibp.fr> or <maz@gloups.fdn.fr> + Copyright (C) 2000 Anton Altparmakov <antona@bigfoot.com> Linear mode management functions. @@ -134,7 +135,7 @@ block, kdevname(tmp_dev->dev), tmp_dev->size, tmp_dev->offset); *rdev=tmp_dev->dev; - *rsector=(block-(tmp_dev->offset)) << 1; + *rsector=((block-(tmp_dev->offset)) << 1) + (*rsector & 1); return (0); }

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:24 EST