Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/msdosfs msdosfs_sync: check for dead vnode (denode ==...
details: https://anonhg.NetBSD.org/src/rev/bbd9b63f315e
branches: trunk
changeset: 759664:bbd9b63f315e
user: hannken <hannken%NetBSD.org@localhost>
date: Tue Dec 14 17:17:02 2010 +0000
description:
msdosfs_sync: check for dead vnode (denode == NULL) before testing denode flags.
diffstat:
sys/fs/msdosfs/msdosfs_vfsops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 40a7ac98cd6c -r bbd9b63f315e sys/fs/msdosfs/msdosfs_vfsops.c
--- a/sys/fs/msdosfs/msdosfs_vfsops.c Tue Dec 14 17:09:27 2010 +0000
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c Tue Dec 14 17:17:02 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msdosfs_vfsops.c,v 1.87 2010/07/21 17:52:10 hannken Exp $ */
+/* $NetBSD: msdosfs_vfsops.c,v 1.88 2010/12/14 17:17:02 hannken Exp $ */
/*-
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.87 2010/07/21 17:52:10 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.88 2010/12/14 17:17:02 hannken Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -977,7 +977,7 @@
mutex_enter(&vp->v_interlock);
dep = VTODE(vp);
if (waitfor == MNT_LAZY || vp->v_type == VNON ||
- (((dep->de_flag &
+ dep == NULL || (((dep->de_flag &
(DE_ACCESS | DE_CREATE | DE_UPDATE | DE_MODIFIED)) == 0) &&
(LIST_EMPTY(&vp->v_dirtyblkhd) &&
UVM_OBJ_IS_CLEAN(&vp->v_uobj)))) {
Home |
Main Index |
Thread Index |
Old Index