summaryrefslogtreecommitdiff
path: root/sys/kern/subr_diskslice.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_diskslice.c')
-rw-r--r--sys/kern/subr_diskslice.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/kern/subr_diskslice.c b/sys/kern/subr_diskslice.c
index 644eb64ca973..73f738381ef6 100644
--- a/sys/kern/subr_diskslice.c
+++ b/sys/kern/subr_diskslice.c
@@ -43,7 +43,7 @@
* from: wd.c,v 1.55 1994/10/22 01:57:12 phk Exp $
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
* from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $
- * $Id: subr_diskslice.c,v 1.30 1996/10/29 13:15:30 bde Exp $
+ * $Id: subr_diskslice.c,v 1.31 1996/12/01 11:25:00 sos Exp $
*/
#include <sys/param.h>
@@ -65,8 +65,6 @@
#include <ufs/ffs/fs.h>
-#define b_cylinder b_resid
-
#define TRACE(str) do { if (ds_debug) printf str; } while (0)
typedef u_char bool_t;
@@ -185,12 +183,7 @@ if (labelsect != 0) Debugger("labelsect != 0 in dscheck()");
bp->b_bcount = sz << DEV_BSHIFT;
}
- /* calculate cylinder for disksort to order transfers with */
bp->b_pblkno = blkno + sp->ds_offset;
- if (lp == NULL)
- bp->b_cylinder = 0; /* XXX always 0 would be better */
- else
- bp->b_cylinder = bp->b_pblkno / lp->d_secpercyl;
/*
* Snoop on label accesses if the slice offset is nonzero. Fudge