From 440edc76ca3eee8d62ac049d5e11915b6cc31756 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Thu, 31 May 2007 02:57:54 +0000 Subject: 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@ --- sys/arch/sparc/sparc/disksubr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/sparc') 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: -- cgit v1.2.3