aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2016-08-04 13:45:18 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2016-08-04 13:45:18 +0000
commit7b255097ebe2ad41b82191fdf0e25245946ea95e (patch)
treee710fbdd4f5b574f57f0f4fb86b3bdce8fddb14c
parent18ac59f431b3e1a464ebae4ecf47a5bf0e6fbf1b (diff)
Notes
-rw-r--r--sys/kern/vfs_subr.c19
-rw-r--r--sys/kern/vnode_if.src3
-rw-r--r--sys/sys/vnode.h18
3 files changed, 0 insertions, 40 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 0b73d14d77ac..14991f2d8a5a 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -4465,25 +4465,6 @@ assert_vop_elocked(struct vnode *vp, const char *str)
if (!IGNORE_LOCK(vp) && VOP_ISLOCKED(vp) != LK_EXCLUSIVE)
vfs_badlock("is not exclusive locked but should be", str, vp);
}
-
-#if 0
-void
-assert_vop_elocked_other(struct vnode *vp, const char *str)
-{
-
- if (!IGNORE_LOCK(vp) && VOP_ISLOCKED(vp) != LK_EXCLOTHER)
- vfs_badlock("is not exclusive locked by another thread",
- str, vp);
-}
-
-void
-assert_vop_slocked(struct vnode *vp, const char *str)
-{
-
- if (!IGNORE_LOCK(vp) && VOP_ISLOCKED(vp) != LK_SHARED)
- vfs_badlock("is not locked shared but should be", str, vp);
-}
-#endif /* 0 */
#endif /* DEBUG_VFS_LOCKS */
void
diff --git a/sys/kern/vnode_if.src b/sys/kern/vnode_if.src
index 0350e0e0aecd..b55336255e90 100644
--- a/sys/kern/vnode_if.src
+++ b/sys/kern/vnode_if.src
@@ -40,10 +40,7 @@
#
# The locking value can take the following values:
# L: locked; not converted to type of lock.
-# A: any lock type.
-# S: locked with shared lock.
# E: locked with exclusive lock for this process.
-# O: locked with exclusive lock for other process.
# U: unlocked.
# -: not applicable. vnode does not yet (or no longer) exists.
# =: the same on input and output, may be either L or U.
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 2319fdbb817c..eb0672eb3009 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -517,25 +517,13 @@ extern struct vnodeop_desc *vnodeop_descs[];
void assert_vi_locked(struct vnode *vp, const char *str);
void assert_vi_unlocked(struct vnode *vp, const char *str);
void assert_vop_elocked(struct vnode *vp, const char *str);
-#if 0
-void assert_vop_elocked_other(struct vnode *vp, const char *str);
-#endif
void assert_vop_locked(struct vnode *vp, const char *str);
-#if 0
-voi0 assert_vop_slocked(struct vnode *vp, const char *str);
-#endif
void assert_vop_unlocked(struct vnode *vp, const char *str);
#define ASSERT_VI_LOCKED(vp, str) assert_vi_locked((vp), (str))
#define ASSERT_VI_UNLOCKED(vp, str) assert_vi_unlocked((vp), (str))
#define ASSERT_VOP_ELOCKED(vp, str) assert_vop_elocked((vp), (str))
-#if 0
-#define ASSERT_VOP_ELOCKED_OTHER(vp, str) assert_vop_locked_other((vp), (str))
-#endif
#define ASSERT_VOP_LOCKED(vp, str) assert_vop_locked((vp), (str))
-#if 0
-#define ASSERT_VOP_SLOCKED(vp, str) assert_vop_slocked((vp), (str))
-#endif
#define ASSERT_VOP_UNLOCKED(vp, str) assert_vop_unlocked((vp), (str))
#else /* !DEBUG_VFS_LOCKS */
@@ -543,13 +531,7 @@ void assert_vop_unlocked(struct vnode *vp, const char *str);
#define ASSERT_VI_LOCKED(vp, str) ((void)0)
#define ASSERT_VI_UNLOCKED(vp, str) ((void)0)
#define ASSERT_VOP_ELOCKED(vp, str) ((void)0)
-#if 0
-#define ASSERT_VOP_ELOCKED_OTHER(vp, str)
-#endif
#define ASSERT_VOP_LOCKED(vp, str) ((void)0)
-#if 0
-#define ASSERT_VOP_SLOCKED(vp, str)
-#endif
#define ASSERT_VOP_UNLOCKED(vp, str) ((void)0)
#endif /* DEBUG_VFS_LOCKS */