Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/smbfs smbfs_sync(): need to explicitly ignore VNON vn...
details: https://anonhg.NetBSD.org/src/rev/46f6efcca95b
branches: trunk
changeset: 543466:46f6efcca95b
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Tue Feb 25 23:57:27 2003 +0000
description:
smbfs_sync(): need to explicitly ignore VNON vnodes (e.g. syncer vnode)
diffstat:
sys/fs/smbfs/smbfs_vfsops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6743b12a5864 -r 46f6efcca95b sys/fs/smbfs/smbfs_vfsops.c
--- a/sys/fs/smbfs/smbfs_vfsops.c Tue Feb 25 23:35:03 2003 +0000
+++ b/sys/fs/smbfs/smbfs_vfsops.c Tue Feb 25 23:57:27 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: smbfs_vfsops.c,v 1.19 2003/02/25 22:17:20 jdolecek Exp $ */
+/* $NetBSD: smbfs_vfsops.c,v 1.20 2003/02/25 23:57:27 jdolecek Exp $ */
/*
* Copyright (c) 2000-2001, Boris Popov
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smbfs_vfsops.c,v 1.19 2003/02/25 22:17:20 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smbfs_vfsops.c,v 1.20 2003/02/25 23:57:27 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -400,7 +400,7 @@
simple_lock(&vp->v_interlock);
nvp = LIST_NEXT(vp, v_mntvnodes);
np = VTOSMB(vp);
- if ((np->n_flag & NMODIFIED) == 0 &&
+ if ((vp->v_type == VNON || (np->n_flag & NMODIFIED) == 0) &&
LIST_EMPTY(&vp->v_dirtyblkhd) &&
vp->v_uobj.uo_npages == 0) {
simple_unlock(&vp->v_interlock);
Home |
Main Index |
Thread Index |
Old Index