Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/lfs Consistently use {, UN}MARK_VNODE macros rather t...
details: https://anonhg.NetBSD.org/src/rev/c8c92fa4c2f8
branches: trunk
changeset: 355872:c8c92fa4c2f8
user: maya <maya%NetBSD.org@localhost>
date: Sat Aug 19 11:27:42 2017 +0000
description:
Consistently use {,UN}MARK_VNODE macros rather than function calls.
diffstat:
sys/ufs/lfs/lfs_alloc.c | 6 +++---
sys/ufs/lfs/lfs_vnops.c | 14 +++++++-------
2 files changed, 10 insertions(+), 10 deletions(-)
diffs (90 lines):
diff -r f57efd756c6c -r c8c92fa4c2f8 sys/ufs/lfs/lfs_alloc.c
--- a/sys/ufs/lfs/lfs_alloc.c Sat Aug 19 09:10:24 2017 +0000
+++ b/sys/ufs/lfs/lfs_alloc.c Sat Aug 19 11:27:42 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_alloc.c,v 1.136 2017/06/10 05:29:36 maya Exp $ */
+/* $NetBSD: lfs_alloc.c,v 1.137 2017/08/19 11:27:42 maya Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2002, 2003, 2007 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_alloc.c,v 1.136 2017/06/10 05:29:36 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_alloc.c,v 1.137 2017/08/19 11:27:42 maya Exp $");
#if defined(_KERNEL_OPT)
#include "opt_quota.h"
@@ -510,7 +510,7 @@
* not updated together in one function? (and why do both exist,
* anyway?)
*/
- lfs_unmark_vnode(vp);
+ UNMARK_VNODE(vp);
mutex_enter(&lfs_lock);
if (vp->v_uflag & VU_DIROP) {
diff -r f57efd756c6c -r c8c92fa4c2f8 sys/ufs/lfs/lfs_vnops.c
--- a/sys/ufs/lfs/lfs_vnops.c Sat Aug 19 09:10:24 2017 +0000
+++ b/sys/ufs/lfs/lfs_vnops.c Sat Aug 19 11:27:42 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_vnops.c,v 1.318 2017/07/26 16:42:37 maya Exp $ */
+/* $NetBSD: lfs_vnops.c,v 1.319 2017/08/19 11:27:42 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.318 2017/07/26 16:42:37 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.319 2017/08/19 11:27:42 maya Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -374,7 +374,7 @@
vrele(tvp);
return error;
}
- lfs_mark_vnode(tvp);
+ MARK_VNODE(tvp);
*vpp = tvp;
ip = VTOI(tvp);
ip->i_state |= IN_ACCESS | IN_CHANGE | IN_UPDATE;
@@ -419,7 +419,7 @@
DIP_ASSIGN(ip, nlink, 0);
ip->i_state |= IN_CHANGE;
/* If IN_ADIROP, account for it */
- lfs_unmark_vnode(tvp);
+ UNMARK_VNODE(tvp);
vput(tvp);
return (error);
}
@@ -526,7 +526,7 @@
KASSERT(VOP_ISLOCKED(ap->a_vp) == LK_EXCLUSIVE);
- lfs_unmark_vnode(ap->a_vp);
+ UNMARK_VNODE(ap->a_vp);
/*
* The Ifile is only ever inactivated on unmount.
@@ -989,7 +989,7 @@
}
tvp = *ap->a_vpp;
- lfs_mark_vnode(tvp);
+ MARK_VNODE(tvp);
ip = VTOI(tvp);
ip->i_state |= IN_ACCESS | IN_CHANGE | IN_UPDATE;
ip->i_nlink = 2;
@@ -1064,7 +1064,7 @@
DIP_ASSIGN(ip, nlink, 0);
ip->i_state |= IN_CHANGE;
/* If IN_ADIROP, account for it */
- lfs_unmark_vnode(tvp);
+ UNMARK_VNODE(tvp);
vput(tvp);
}
Home |
Main Index |
Thread Index |
Old Index