diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-11-21 16:34:52 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-11-21 16:34:52 +0000 |
commit | e304e9ebe5468a8358767911dd7b8d7ff0b0cb9b (patch) | |
tree | abdadea3a65deaf0cb049e14a18bb47bf06bd4c1 /sys/dev/softraid_raidp.c | |
parent | 2bc29ac36442f27159144a7e7fb8f37c22e7af5e (diff) |
Change a bunch of daddr_t variables that don't (obviously) contain
512-byte-block information to int64_t, the underlying type of
daddr_t at the moment. No change to .o files. Removal of now
unneeded (long long) casts is next.
Diffstat (limited to 'sys/dev/softraid_raidp.c')
-rw-r--r-- | sys/dev/softraid_raidp.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/dev/softraid_raidp.c b/sys/dev/softraid_raidp.c index 54e2a3ccee4..3f8f052ee3d 100644 --- a/sys/dev/softraid_raidp.c +++ b/sys/dev/softraid_raidp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid_raidp.c,v 1.53 2013/11/05 08:55:58 reyk Exp $ */ +/* $OpenBSD: softraid_raidp.c,v 1.54 2013/11/21 16:34:51 krw Exp $ */ /* * Copyright (c) 2009 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2009 Jordan Hargrave <jordan@openbsd.org> @@ -338,9 +338,11 @@ sr_raidp_rw(struct sr_workunit *wu) struct scsi_xfer *xs = wu->swu_xs; struct sr_chunk *scp; int s, i; - daddr_t blk, lbaoffs, strip_no, chunk, row_size; - daddr_t strip_size, no_chunk, lba, chunk_offs, phys_offs; - daddr_t strip_bits, length, parity, strip_offs, datalen; + daddr_t blk, lba; + int64_t chunk_offs, lbaoffs, phys_offs, strip_offs; + int64_t strip_bits, strip_no, strip_size; + int64_t chunk, no_chunk; + int64_t length, parity, datalen, row_size; void *xorbuf, *data; /* blk and scsi error will be handled by sr_validate_io */ @@ -632,8 +634,8 @@ sr_raidp_xor(void *a, void *b, int len) void sr_raidp_scrub(struct sr_discipline *sd) { - daddr_t strip_no, strip_size, no_chunk, parity, max_strip, strip_bits; - daddr_t i; + int64_t strip_no, strip_size, no_chunk, parity, max_strip, strip_bits; + int64_t i; struct sr_workunit *wu_r, *wu_w; int s, slept; void *xorbuf; |