summaryrefslogtreecommitdiffstats
path: root/lkm
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>1998-09-28 04:24:10 +0000
committergrog <grog@FreeBSD.org>1998-09-28 04:24:10 +0000
commitbc08182a5d1a0719f53ba972e79c95b04befebdf (patch)
treea57d3506c0b504a1c1474922ee00cb603cbd0db1 /lkm
parent4afb4efa2f398e137ab32c2ba7f718d41618e29b (diff)
downloadFreeBSD-src-bc08182a5d1a0719f53ba972e79c95b04befebdf.zip
FreeBSD-src-bc08182a5d1a0719f53ba972e79c95b04befebdf.tar.gz
Correct calculation of revive blocksize
Submitted by: Chris Csanady
Diffstat (limited to 'lkm')
-rw-r--r--lkm/vinum/revive.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lkm/vinum/revive.c b/lkm/vinum/revive.c
index 2f8117a..216dc48 100644
--- a/lkm/vinum/revive.c
+++ b/lkm/vinum/revive.c
@@ -33,7 +33,7 @@
* otherwise) arising in any way out of the use of this software, even if
* advised of the possibility of such damage.
*
- * $Id: revive.c,v 1.1 1998/08/14 06:16:59 grog Exp grog $
+ * $Id: revive.c,v 1.1.1.1 1998/09/16 05:56:21 grog Exp $
*/
#define REALLYKERNEL
@@ -60,7 +60,7 @@ revive_block(int plexno)
else
plex->revive_blocksize = DEFAULT_REVIVE_BLOCKSIZE;
}
- size = min(plex->revive_blocksize, plex->length - plex->revived) << DEV_BSHIFT;
+ size = min(plex->revive_blocksize, (plex->length - plex->revived) << DEV_BSHIFT);
s = splbio();
/* Get a buffer */
OpenPOWER on IntegriCloud