Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs Not much point doing anything after a panic call



details:   https://anonhg.NetBSD.org/src/rev/d385781cb66e
branches:  trunk
changeset: 826174:d385781cb66e
user:      maya <maya%NetBSD.org@localhost>
date:      Sat Aug 19 12:01:08 2017 +0000

description:
Not much point doing anything after a panic call

diffstat:

 sys/ufs/lfs/lfs_vnops.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (31 lines):

diff -r 427638a0a076 -r d385781cb66e sys/ufs/lfs/lfs_vnops.c
--- a/sys/ufs/lfs/lfs_vnops.c   Sat Aug 19 11:27:42 2017 +0000
+++ b/sys/ufs/lfs/lfs_vnops.c   Sat Aug 19 12:01:08 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_vnops.c,v 1.319 2017/08/19 11:27:42 maya Exp $     */
+/*     $NetBSD: lfs_vnops.c,v 1.320 2017/08/19 12:01:08 maya Exp $     */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -125,7 +125,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.319 2017/08/19 11:27:42 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.320 2017/08/19 12:01:08 maya Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -1451,11 +1451,8 @@
                ip->i_state &= ~IN_PAGING;
                TAILQ_REMOVE(&fs->lfs_pchainhd, ip, i_lfs_pchain);
        }
-       if (vp->v_uflag & VU_DIROP) {
+       if (vp->v_uflag & VU_DIROP)
                panic("reclaimed vnode is VU_DIROP");
-               vp->v_uflag &= ~VU_DIROP;
-               TAILQ_REMOVE(&fs->lfs_dchainhd, ip, i_lfs_dchain);
-       }
        mutex_exit(&lfs_lock);
 
        pool_put(&lfs_dinode_pool, ip->i_din);



Home | Main Index | Thread Index | Old Index