summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2013-11-21 00:13:33 +0000
committerdlg <dlg@openbsd.org>2013-11-21 00:13:33 +0000
commit27f37992c7cdc39b161d12d3ddece4279978470d (patch)
treec7debb46788f6d3bc7ca81110db36be15bf72332 /sys/kern/subr_hibernate.c
parentUpdate comments mentioning `resource maps' to mention `extents' instead. (diff)
downloadwireguard-openbsd-27f37992c7cdc39b161d12d3ddece4279978470d.tar.xz
wireguard-openbsd-27f37992c7cdc39b161d12d3ddece4279978470d.zip
remove the #define b_cylinder b_resid from bufs. i hated the
overloading of that thing. the only hardware that seems to care about cylinders in our tree are floppy drives, and the drivers for those calculate their own cylinders from logical block addresses and ignore whatever the rest of the kernel thought b_cylinders should be. most of this diff is moving the floppy drivers to using b_resid as a resid and using that as part of the calculation for real cylinder values. the rest of the diff is getting rid of the useless assignments to b_cylinder that dont get used by anything (now that disksort is gone). ok miod@
Diffstat (limited to 'sys/kern/subr_hibernate.c')
-rw-r--r--sys/kern/subr_hibernate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c
index 9ec1dfea257..b724c4a4cfd 100644
--- a/sys/kern/subr_hibernate.c
+++ b/sys/kern/subr_hibernate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_hibernate.c,v 1.80 2013/11/09 06:54:00 mlarkin Exp $ */
+/* $OpenBSD: subr_hibernate.c,v 1.81 2013/11/21 00:13:33 dlg Exp $ */
/*
* Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl>
@@ -1059,7 +1059,6 @@ hibernate_block_io(union hibernate_info *hib, daddr_t blkctr,
CLR(bp->b_flags, B_READ | B_WRITE | B_DONE);
SET(bp->b_flags, B_BUSY | (iswrite ? B_WRITE : B_READ) | B_RAW);
bp->b_dev = hib->dev;
- bp->b_cylinder = 0;
(*bdsw->d_strategy)(bp);
error = biowait(bp);