summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-05-31 02:57:54 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-05-31 02:57:54 +0000
commit440edc76ca3eee8d62ac049d5e11915b6cc31756 (patch)
tree910ee4fa0d445da92e5aaa01a3acb9fb8d69a72f /sys/arch
parent319fbd8cd4ec080005b5209f6658f8475f652f76 (diff)
Be consistant and use b_cylinder when saving the cylinder number for
disksort, not b_resid. b_cylinder is defined to be 'b_resid' so no functional change. ok deraadt@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hp300/hp300/disksubr.c4
-rw-r--r--sys/arch/sparc/sparc/disksubr.c4
-rw-r--r--sys/arch/sparc64/sparc64/disksubr.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/hp300/hp300/disksubr.c b/sys/arch/hp300/hp300/disksubr.c
index 84e8442e8eb..e66ebbf667e 100644
--- a/sys/arch/hp300/hp300/disksubr.c
+++ b/sys/arch/hp300/hp300/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.25 2007/05/29 06:28:14 otto Exp $ */
+/* $OpenBSD: disksubr.c,v 1.26 2007/05/31 02:57:53 krw Exp $ */
/* $NetBSD: disksubr.c,v 1.9 1997/04/01 03:12:13 scottr Exp $ */
/*
@@ -270,7 +270,7 @@ bounds_check_with_label(bp, lp, osdep, wlabel)
}
/* calculate cylinder for disksort to order transfers with */
- bp->b_resid = (bp->b_blkno + blockpersec(p->p_offset, lp)) /
+ bp->b_cylinder = (bp->b_blkno + blockpersec(p->p_offset, lp)) /
lp->d_secpercyl;
return (1);
diff --git a/sys/arch/sparc/sparc/disksubr.c b/sys/arch/sparc/sparc/disksubr.c
index 1af6c1b0340..d36a0b1d93e 100644
--- a/sys/arch/sparc/sparc/disksubr.c
+++ b/sys/arch/sparc/sparc/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.45 2007/05/31 00:30:08 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.46 2007/05/31 02:57:53 krw Exp $ */
/* $NetBSD: disksubr.c,v 1.16 1996/04/28 20:25:59 thorpej Exp $ */
/*
@@ -326,7 +326,7 @@ bounds_check_with_label(bp, lp, osdep, wlabel)
}
/* calculate cylinder for disksort to order transfers with */
- bp->b_resid = (bp->b_blkno + blockpersec(p->p_offset, lp)) /
+ bp->b_cylinder = (bp->b_blkno + blockpersec(p->p_offset, lp)) /
lp->d_secpercyl;
return (1);
bad:
diff --git a/sys/arch/sparc64/sparc64/disksubr.c b/sys/arch/sparc64/sparc64/disksubr.c
index 0be5c0a7429..92b65f73e2e 100644
--- a/sys/arch/sparc64/sparc64/disksubr.c
+++ b/sys/arch/sparc64/sparc64/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.24 2007/05/31 00:30:10 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.25 2007/05/31 02:57:53 krw Exp $ */
/* $NetBSD: disksubr.c,v 1.13 2000/12/17 22:39:18 pk Exp $ */
/*
@@ -323,7 +323,7 @@ bounds_check_with_label(bp, lp, osdep, wlabel)
}
/* calculate cylinder for disksort to order transfers with */
- bp->b_resid = (bp->b_blkno + blockpersec(p->p_offset, lp)) /
+ bp->b_cylinder = (bp->b_blkno + blockpersec(p->p_offset, lp)) /
lp->d_secpercyl;
return (1);
bad: