diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-27 04:58:50 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-27 04:58:50 +0000 |
commit | 2d089dc551efe8a4004f99b557081ea313891050 (patch) | |
tree | 015a91c1480d57159d83fa495068cb7eed8d110b /sys/ufs/ext2fs/ext2fs_inode.c | |
parent | edc9c7f6c9998a46c76c042e4ec02f6dfd1e2f8b (diff) |
Remove old vm.
Diffstat (limited to 'sys/ufs/ext2fs/ext2fs_inode.c')
-rw-r--r-- | sys/ufs/ext2fs/ext2fs_inode.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_inode.c b/sys/ufs/ext2fs/ext2fs_inode.c index 700dc49d4a7..311b0716640 100644 --- a/sys/ufs/ext2fs/ext2fs_inode.c +++ b/sys/ufs/ext2fs/ext2fs_inode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ext2fs_inode.c,v 1.11 2001/06/23 02:07:51 csapuntz Exp $ */ +/* $OpenBSD: ext2fs_inode.c,v 1.12 2001/06/27 04:58:47 art Exp $ */ /* $NetBSD: ext2fs_inode.c,v 1.1 1997/06/11 09:33:56 bouyer Exp $ */ /* @@ -224,13 +224,8 @@ ext2fs_truncate(struct inode *oip, off_t length, int flags, struct ucred *cred) if (error) return (error); oip->i_e2fs_size = length; -#if defined(UVM) uvm_vnp_setsize(ovp, length); uvm_vnp_uncache(ovp); -#else - vnode_pager_setsize(ovp, (u_long)length); - (void) vnode_pager_uncache(ovp); -#endif if (aflags & B_SYNC) bwrite(bp); else @@ -259,13 +254,8 @@ ext2fs_truncate(struct inode *oip, off_t length, int flags, struct ucred *cred) return (error); oip->i_e2fs_size = length; size = fs->e2fs_bsize; -#if defined(UVM) uvm_vnp_setsize(ovp, length); uvm_vnp_uncache(ovp); -#else - vnode_pager_setsize(ovp, (u_long)length); - (void) vnode_pager_uncache(ovp); -#endif bzero((char *)bp->b_data + offset, (u_int)(size - offset)); allocbuf(bp, size); if (aflags & B_SYNC) |