Fix lost lock in lfs_markv -- a typo-class bug, obvious when you look at it.

This commit is contained in:
perseant 1999-04-14 19:37:28 +00:00
parent 9603b90966
commit 40458c9d34

View File

@ -1,4 +1,4 @@
/* $NetBSD: lfs_syscalls.c,v 1.29 1999/04/12 00:40:06 perseant Exp $ */ /* $NetBSD: lfs_syscalls.c,v 1.30 1999/04/14 19:37:28 perseant Exp $ */
/*- /*-
* Copyright (c) 1999 The NetBSD Foundation, Inc. * Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -249,8 +249,8 @@ lfs_markv(p, v, retval)
* of a usable vnode in vp is signaled by a valid v_daddr. * of a usable vnode in vp is signaled by a valid v_daddr.
*/ */
if(v_daddr != LFS_UNUSED_DADDR) { if(v_daddr != LFS_UNUSED_DADDR) {
if(ip->i_flag & (IN_MODIFIED|IN_CLEANING))
#ifdef DEBUG_LFS #ifdef DEBUG_LFS
if(ip->i_flag & (IN_MODIFIED|IN_CLEANING))
iwritten++; iwritten++;
#endif #endif
if(lfs_fastvget_unlock) { if(lfs_fastvget_unlock) {