From 25600ca65e5e9761816d32c32bced3d0b9be6ded Mon Sep 17 00:00:00 2001 From: "Todd T. Fries" Date: Mon, 24 Aug 2009 15:00:58 +0000 Subject: rumor has it (from thib) that uvm_vnp_setsize() is scary to not call this appears to fix a mmap vs read sync issue I've been seeing since forever ok thib@ --- sys/nnpfs/nnpfs_locl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/nnpfs/nnpfs_locl.h b/sys/nnpfs/nnpfs_locl.h index 8107315235a..0306195a217 100644 --- a/sys/nnpfs/nnpfs_locl.h +++ b/sys/nnpfs/nnpfs_locl.h @@ -372,7 +372,7 @@ struct nnpfs_setgroups_args{ #define nnpfs_vfs_object_create(vp,proc,ucred) vfs_object_create(vp,proc,ucred) #endif -#if defined(UVM) || (defined(__NetBSD__) && __NetBSD_Version__ >= 105280000) +#if defined(UVM) || (defined(__NetBSD__) && __NetBSD_Version__ >= 105280000) || defined(__OpenBSD__) #define nnpfs_set_vp_size(vp, sz) uvm_vnp_setsize(vp, sz) #elif HAVE_KERNEL_VNODE_PAGER_SETSIZE #define nnpfs_set_vp_size(vp, sz) vnode_pager_setsize(vp, sz) -- cgit v1.2.3