diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-02-26 03:28:14 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-02-26 03:28:14 +0000 |
commit | 6a162e41bb8ce6a687782ce897ac7fe08ebd60a1 (patch) | |
tree | 73173bd30f9937c5bd83eb5eec84b934091185a0 /sys/msdosfs/msdosfs_vnops.c | |
parent | 76660b731b0437c7ec9704a15cd86cd5825b2d74 (diff) |
compat with uvm vnode pager
Diffstat (limited to 'sys/msdosfs/msdosfs_vnops.c')
-rw-r--r-- | sys/msdosfs/msdosfs_vnops.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c index 4792bf7383d..09e9e169e6b 100644 --- a/sys/msdosfs/msdosfs_vnops.c +++ b/sys/msdosfs/msdosfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_vnops.c,v 1.20 1999/01/11 05:12:28 millert Exp $ */ +/* $OpenBSD: msdosfs_vnops.c,v 1.21 1999/02/26 03:28:13 art Exp $ */ /* $NetBSD: msdosfs_vnops.c,v 1.63 1997/10/17 11:24:19 ws Exp $ */ /*- @@ -638,9 +638,17 @@ msdosfs_write(v) n = min(uio->uio_resid, pmp->pm_bpcluster - croffset); if (uio->uio_offset + n > dep->de_FileSize) { dep->de_FileSize = uio->uio_offset + n; +#if defined(UVM) + uvm_vnp_setsize(vp, dep->de_FileSize); +#else vnode_pager_setsize(vp, dep->de_FileSize); /* why? */ +#endif } +#if defined(UVM) + uvm_vnp_uncache(vp); +#else (void) vnode_pager_uncache(vp); /* why not? */ +#endif /* * Should these vnode_pager_* functions be done on dir * files? |