use lfs_unmark_vnode instead of duplicated code fragments.
This commit is contained in:
parent
9ae5a89aa8
commit
49d2b56b43
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lfs_alloc.c,v 1.57 2002/11/24 08:43:26 yamt Exp $ */
|
||||
/* $NetBSD: lfs_alloc.c,v 1.58 2003/01/08 15:40:04 yamt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -71,7 +71,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: lfs_alloc.c,v 1.57 2002/11/24 08:43:26 yamt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: lfs_alloc.c,v 1.58 2003/01/08 15:40:04 yamt Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_quota.h"
|
||||
|
@ -546,10 +546,7 @@ lfs_vfree(void *v)
|
|||
wakeup(&lfs_dirvcount);
|
||||
lfs_vunref(vp);
|
||||
}
|
||||
if (ip->i_flag & IN_ADIROP) {
|
||||
--fs->lfs_nadirop;
|
||||
ip->i_flag &= ~IN_ADIROP;
|
||||
}
|
||||
lfs_unmark_vnode(vp);
|
||||
|
||||
LFS_CLR_UINO(ip, IN_ACCESSED|IN_CLEANING|IN_MODIFIED);
|
||||
ip->i_flag &= ~IN_ALLMOD;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lfs_vnops.c,v 1.75 2002/12/29 07:05:55 yamt Exp $ */
|
||||
/* $NetBSD: lfs_vnops.c,v 1.76 2003/01/08 15:40:05 yamt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -71,7 +71,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.75 2002/12/29 07:05:55 yamt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.76 2003/01/08 15:40:05 yamt Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -337,11 +337,9 @@ lfs_inactive(void *v)
|
|||
struct vnode *a_vp;
|
||||
struct proc *a_p;
|
||||
} */ *ap = v;
|
||||
struct inode *ip = VTOI(ap->a_vp);
|
||||
|
||||
if (ip->i_flag & IN_ADIROP)
|
||||
--ip->i_lfs->lfs_nadirop;
|
||||
ip->i_flag &= ~IN_ADIROP;
|
||||
lfs_unmark_vnode(ap->a_vp);
|
||||
|
||||
return ufs_inactive(v);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue