diff options
| author | Greg Lehey <grog@FreeBSD.org> | 1998-11-02 04:10:19 +0000 |
|---|---|---|
| committer | Greg Lehey <grog@FreeBSD.org> | 1998-11-02 04:10:19 +0000 |
| commit | d45fbfc7a1248b1393f2b466a8aee69e524d6363 (patch) | |
| tree | ef0e7333dbb1b5f7a2b7690393fe0bb44d197db4 /lkm | |
| parent | 47ffaa06f13b3daba2668cac9f3c10d0a8ad0e60 (diff) | |
Notes
Diffstat (limited to 'lkm')
| -rw-r--r-- | lkm/vinum/revive.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lkm/vinum/revive.c b/lkm/vinum/revive.c index 216dc4887d41..2d9352437751 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.1.1 1998/09/16 05:56:21 grog Exp $ + * $Id: revive.c,v 1.3 1998/10/30 00:56:38 grog Exp grog $ */ #define REALLYKERNEL @@ -51,12 +51,13 @@ revive_block(int plexno) struct plex *plex = &PLEX[plexno]; struct buf *bp; int error = EAGAIN; - int size; + int size; /* size of revive block, bytes */ int s; /* priority level */ if (plex->revive_blocksize == 0) { if (plex->stripesize != 0) /* we're striped, don't revive more than */ - plex->revive_blocksize = min(DEFAULT_REVIVE_BLOCKSIZE, plex->stripesize); /* one block at a time */ + plex->revive_blocksize = min(DEFAULT_REVIVE_BLOCKSIZE, /* one block at a time */ + plex->stripesize << DEV_BSHIFT); else plex->revive_blocksize = DEFAULT_REVIVE_BLOCKSIZE; } |
