Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/lfs Call uvm_vmp_setsize() in lfs_{fast, }vget to set...
details: https://anonhg.NetBSD.org/src/rev/5c0b955017f6
branches: trunk
changeset: 499993:5c0b955017f6
user: perseant <perseant%NetBSD.org@localhost>
date: Sun Dec 03 07:34:49 2000 +0000
description:
Call uvm_vmp_setsize() in lfs_{fast,}vget to set initial vnode size.
diffstat:
sys/ufs/lfs/lfs_syscalls.c | 4 +++-
sys/ufs/lfs/lfs_vfsops.c | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r 0aa207f5cfb6 -r 5c0b955017f6 sys/ufs/lfs/lfs_syscalls.c
--- a/sys/ufs/lfs/lfs_syscalls.c Sun Dec 03 07:21:50 2000 +0000
+++ b/sys/ufs/lfs/lfs_syscalls.c Sun Dec 03 07:34:49 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_syscalls.c,v 1.55 2000/11/30 15:57:35 jdolecek Exp $ */
+/* $NetBSD: lfs_syscalls.c,v 1.56 2000/12/03 07:34:49 perseant Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -1111,6 +1111,8 @@
*vpp = vp;
*need_unlock |= FVG_PUT;
+ uvm_vnp_setsize(vp, ip->i_ffs_size);
+
return (0);
}
diff -r 0aa207f5cfb6 -r 5c0b955017f6 sys/ufs/lfs/lfs_vfsops.c
--- a/sys/ufs/lfs/lfs_vfsops.c Sun Dec 03 07:21:50 2000 +0000
+++ b/sys/ufs/lfs/lfs_vfsops.c Sun Dec 03 07:34:49 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_vfsops.c,v 1.61 2000/12/03 05:27:51 chs Exp $ */
+/* $NetBSD: lfs_vfsops.c,v 1.62 2000/12/03 07:34:49 perseant Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -1302,6 +1302,8 @@
VREF(ip->i_devvp);
*vpp = vp;
+ uvm_vnp_setsize(vp, ip->i_ffs_size);
+
return (0);
}
Home |
Main Index |
Thread Index |
Old Index