summaryrefslogtreecommitdiff
path: root/sys/msdosfs/msdosfs_denode.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-02-26 03:28:14 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-02-26 03:28:14 +0000
commit6a162e41bb8ce6a687782ce897ac7fe08ebd60a1 (patch)
tree73173bd30f9937c5bd83eb5eec84b934091185a0 /sys/msdosfs/msdosfs_denode.c
parent76660b731b0437c7ec9704a15cd86cd5825b2d74 (diff)
compat with uvm vnode pager
Diffstat (limited to 'sys/msdosfs/msdosfs_denode.c')
-rw-r--r--sys/msdosfs/msdosfs_denode.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/msdosfs/msdosfs_denode.c b/sys/msdosfs/msdosfs_denode.c
index b1d456cc977..0bc5c0a3a6c 100644
--- a/sys/msdosfs/msdosfs_denode.c
+++ b/sys/msdosfs/msdosfs_denode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_denode.c,v 1.14 1999/01/08 11:00:53 art Exp $ */
+/* $OpenBSD: msdosfs_denode.c,v 1.15 1999/02/26 03:28:13 art Exp $ */
/* $NetBSD: msdosfs_denode.c,v 1.23 1997/10/17 11:23:58 ws Exp $ */
/*-
@@ -386,7 +386,11 @@ detrunc(dep, length, flags, cred, p)
return (EINVAL);
}
+#if defined(UVM)
+ uvm_vnp_setsize(DETOV(dep), length);
+#else
vnode_pager_setsize(DETOV(dep), length);
+#endif
if (dep->de_FileSize < length)
return (deextend(dep, length, cred));
@@ -439,7 +443,11 @@ detrunc(dep, length, flags, cred, p)
#endif
return (error);
}
+#if defined(UVM)
+ uvm_vnp_uncache(DETOV(dep));
+#else
vnode_pager_uncache(DETOV(dep)); /* what's this for? */
+#endif
/*
* is this the right place for it?
*/