Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/lfs Make exported LFSes not panic on the first file ...
details: https://anonhg.NetBSD.org/src/rev/5d7af3e8e6f3
branches: trunk
changeset: 526182:5d7af3e8e6f3
user: perseant <perseant%NetBSD.org@localhost>
date: Sat Apr 27 01:00:46 2002 +0000
description:
Make exported LFSes not panic on the first file create.
diffstat:
sys/ufs/lfs/lfs_vnops.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 6134a0e6d914 -r 5d7af3e8e6f3 sys/ufs/lfs/lfs_vnops.c
--- a/sys/ufs/lfs/lfs_vnops.c Fri Apr 26 23:28:53 2002 +0000
+++ b/sys/ufs/lfs/lfs_vnops.c Sat Apr 27 01:00:46 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_vnops.c,v 1.61 2002/02/11 02:47:29 perseant Exp $ */
+/* $NetBSD: lfs_vnops.c,v 1.62 2002/04/27 01:00:46 perseant Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.61 2002/02/11 02:47:29 perseant Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.62 2002/04/27 01:00:46 perseant Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -298,8 +298,8 @@
return 0;
simple_lock(&vp->v_interlock);
- error = VOP_PUTPAGES(vp, ap->a_offlo, ap->a_offhi,
- PGO_CLEANIT | PGO_SYNCIO);
+ error = VOP_PUTPAGES(vp, trunc_page(ap->a_offlo),
+ round_page(ap->a_offhi), PGO_CLEANIT | PGO_SYNCIO);
if (error) {
return error;
}
Home |
Main Index |
Thread Index |
Old Index