svn commit: r303743 - in head/sys: kern sys
Edward Tomasz Napierala
trasz at FreeBSD.org
Thu Aug 4 13:45:19 UTC 2016
Author: trasz
Date: Thu Aug 4 13:45:18 2016
New Revision: 303743
URL: https://svnweb.freebsd.org/changeset/base/303743
Log:
Remove unused - never actually implemented - vnode lock types
from vnode_if.src.
MFC after: 1 month
Modified:
head/sys/kern/vfs_subr.c
head/sys/kern/vnode_if.src
head/sys/sys/vnode.h
Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c Thu Aug 4 11:38:53 2016 (r303742)
+++ head/sys/kern/vfs_subr.c Thu Aug 4 13:45:18 2016 (r303743)
@@ -4465,25 +4465,6 @@ assert_vop_elocked(struct vnode *vp, con
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
Modified: head/sys/kern/vnode_if.src
==============================================================================
--- head/sys/kern/vnode_if.src Thu Aug 4 11:38:53 2016 (r303742)
+++ head/sys/kern/vnode_if.src Thu Aug 4 13:45:18 2016 (r303743)
@@ -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.
Modified: head/sys/sys/vnode.h
==============================================================================
--- head/sys/sys/vnode.h Thu Aug 4 11:38:53 2016 (r303742)
+++ head/sys/sys/vnode.h Thu Aug 4 13:45:18 2016 (r303743)
@@ -517,25 +517,13 @@ extern struct vnodeop_desc *vnodeop_desc
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 *v
#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 */
More information about the svn-src-head
mailing list