From 76d2795556036edc6263f992ad829a58ded58c38 Mon Sep 17 00:00:00 2001 From: perseant Date: Sat, 27 Apr 2002 01:00:46 +0000 Subject: [PATCH] Make exported LFSes not panic on the first file create. --- sys/ufs/lfs/lfs_vnops.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/ufs/lfs/lfs_vnops.c b/sys/ufs/lfs/lfs_vnops.c index cb757c23f7f5..e41e07877971 100644 --- a/sys/ufs/lfs/lfs_vnops.c +++ b/sys/ufs/lfs/lfs_vnops.c @@ -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 -__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 #include @@ -298,8 +298,8 @@ lfs_fsync(void *v) 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; }