Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/sys/sys v_interlock is now a pointer to ...
details: https://anonhg.NetBSD.org/src/rev/02b097de1bd3
branches: trunk
changeset: 765967:02b097de1bd3
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Jun 12 04:43:11 2011 +0000
description:
v_interlock is now a pointer to kmutex_t, use it as one.
fixes many of the 5.99.53 build issues in zfs, but not all of them.
diffstat:
external/cddl/osnet/sys/sys/vnode.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r d7a94ad3ee92 -r 02b097de1bd3 external/cddl/osnet/sys/sys/vnode.h
--- a/external/cddl/osnet/sys/sys/vnode.h Sun Jun 12 04:40:44 2011 +0000
+++ b/external/cddl/osnet/sys/sys/vnode.h Sun Jun 12 04:43:11 2011 +0000
@@ -1,5 +1,5 @@
-/* $NetBSD: vnode.h,v 1.8 2011/01/21 12:24:24 pooka Exp $ */
+/* $NetBSD: vnode.h,v 1.9 2011/06/12 04:43:11 mrg Exp $ */
/*
* CDDL HEADER START
@@ -298,8 +298,8 @@
#define VN_URELE(v) vput(v)
#define VN_SET_VFS_TYPE_DEV(vp, vfs, type, flag) (0)
-#define VI_LOCK(vp) mutex_enter(&(vp)->v_interlock)
-#define VI_UNLOCK(vp) mutex_exit(&(vp)->v_interlock)
+#define VI_LOCK(vp) mutex_enter((vp)->v_interlock)
+#define VI_UNLOCK(vp) mutex_exit((vp)->v_interlock)
#define VOP_REALVP(vp, vpp, ct) (*(vpp) = (vp), 0)
@@ -654,7 +654,7 @@
nbflag |= PGO_CLEANIT;
}
- mutex_enter(&vp->v_interlock);
+ mutex_enter(vp->v_interlock);
return VOP_PUTPAGES(vp, off, len, nbflag);
}
#define VOP_PUTPAGE(vp, off, len, flag, cr, ct) zfs_vop_putpage((vp), (off), (len), (flag))
Home |
Main Index |
Thread Index |
Old Index