Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/lfs lfs_gop_write: assert that ifile never come here.



details:   https://anonhg.NetBSD.org/src/rev/170de1e241e0
branches:  trunk
changeset: 567059:170de1e241e0
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun May 30 20:45:44 2004 +0000

description:
lfs_gop_write: assert that ifile never come here.

diffstat:

 sys/ufs/lfs/lfs_vfsops.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 313befb6fb6c -r 170de1e241e0 sys/ufs/lfs/lfs_vfsops.c
--- a/sys/ufs/lfs/lfs_vfsops.c  Sun May 30 12:30:35 2004 +0000
+++ b/sys/ufs/lfs/lfs_vfsops.c  Sun May 30 20:45:44 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_vfsops.c,v 1.152 2004/05/25 14:55:46 hannken Exp $ */
+/*     $NetBSD: lfs_vfsops.c,v 1.153 2004/05/30 20:45:44 yamt Exp $    */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.152 2004/05/25 14:55:46 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.153 2004/05/30 20:45:44 yamt Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_quota.h"
@@ -1812,8 +1812,7 @@
        UVMHIST_FUNC("lfs_gop_write"); UVMHIST_CALLED(ubchist);
 
        /* The Ifile lives in the buffer cache */
-       if (vp == fs->lfs_ivnode)
-               return genfs_compat_gop_write(vp, pgs, npages, flags);
+       KASSERT(vp != fs->lfs_ivnode);
 
        /*
         * Sometimes things slip past the filters in lfs_putpages,



Home | Main Index | Thread Index | Old Index