summaryrefslogtreecommitdiffstats
path: root/sys/uvm/uvm_vnode.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2007-06-05 00:38:12 +0000
committerderaadt <deraadt@openbsd.org>2007-06-05 00:38:12 +0000
commite16633b4e5ee7873f0d213b0c3f0e7d56c000d85 (patch)
treeb13c42bb504d789800ed58b3769fc333ecd1e41b /sys/uvm/uvm_vnode.c
parentzap extra param (diff)
downloadwireguard-openbsd-e16633b4e5ee7873f0d213b0c3f0e7d56c000d85.tar.xz
wireguard-openbsd-e16633b4e5ee7873f0d213b0c3f0e7d56c000d85.zip
use six new macros to access & store the 48-bit disklabel fields related
to size. tested on almost all machines, double checked by miod and krw next comes the type handling surrounding these values
Diffstat (limited to 'sys/uvm/uvm_vnode.c')
-rw-r--r--sys/uvm/uvm_vnode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_vnode.c b/sys/uvm/uvm_vnode.c
index 95b20053000..dd4762b700d 100644
--- a/sys/uvm/uvm_vnode.c
+++ b/sys/uvm/uvm_vnode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_vnode.c,v 1.48 2007/05/29 21:06:34 thib Exp $ */
+/* $OpenBSD: uvm_vnode.c,v 1.49 2007/06/05 00:38:24 deraadt Exp $ */
/* $NetBSD: uvm_vnode.c,v 1.36 2000/11/24 20:34:01 chs Exp $ */
/*
@@ -250,7 +250,7 @@ uvn_attach(arg, accessprot)
if (result == 0) {
/* XXX should remember blocksize */
used_vnode_size = (u_quad_t)pi.disklab->d_secsize *
- (u_quad_t)pi.part->p_size;
+ (u_quad_t)DL_GETPSIZE(pi.part);
}
} else {
result = VOP_GETATTR(vp, &vattr, curproc->p_ucred, curproc);