diff options
| author | oster <oster@NetBSD.org> | 2007-09-16 02:13:35 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2007-09-16 02:13:35 +0000 |
| commit | 46ae972f1badc92baa43f2e34d05066584357d8f (patch) | |
| tree | e3be864bbd4bf2ab9afd3e6b4b270e19e108c712 /sys/dev/raidframe | |
| parent | 2872c55cb05a762619f6f1dc53aa958f65138c55 (diff) | |
Make a couple of variables 64-bit quantities to avoid overflow issues
when arrays have a large number of stripes. Remove unused variable
(recon_stripes_done). Thanks to Dieter Roelants for the report,
suggestions, and testing. Addresses PR#36878.
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_raid.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/raidframe/rf_raid.h b/sys/dev/raidframe/rf_raid.h index 4ddb13be711..9d221023498 100644 --- a/sys/dev/raidframe/rf_raid.h +++ b/sys/dev/raidframe/rf_raid.h @@ -1,4 +1,4 @@ -/* $NetBSD: rf_raid.h,v 1.36 2007/03/04 06:02:39 christos Exp $ */ +/* $NetBSD: rf_raid.h,v 1.37 2007/09/16 02:13:35 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -204,9 +204,8 @@ struct RF_Raid_s { /* * Statistics */ - int parity_rewrite_stripes_done; - int recon_stripes_done; - int copyback_stripes_done; + RF_StripeCount_t parity_rewrite_stripes_done; + RF_StripeCount_t copyback_stripes_done; int recon_in_progress; int parity_rewrite_in_progress; |
