diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2009-08-24 15:00:58 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2009-08-24 15:00:58 +0000 |
commit | 25600ca65e5e9761816d32c32bced3d0b9be6ded (patch) | |
tree | edbea066a9a289dcc244c419f714dec0fe9a374b | |
parent | cc81049bbf06721c9b392b1a6d178ad725e7654c (diff) |
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@
-rw-r--r-- | sys/nnpfs/nnpfs_locl.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |