diff options
author | jeff <jeff@FreeBSD.org> | 2002-10-13 04:19:44 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-10-13 04:19:44 +0000 |
commit | ec9727e8a45de00a008016614ac6c8083fcb3aad (patch) | |
tree | 55a631945fc07c3a2ab6ff478dfa6c0463738ed7 | |
parent | c6eea350fcfdb6696d8e29427e3457e4a5723027 (diff) | |
download | FreeBSD-src-ec9727e8a45de00a008016614ac6c8083fcb3aad.zip FreeBSD-src-ec9727e8a45de00a008016614ac6c8083fcb3aad.tar.gz |
- Remove the do { } while(0) from the VOP lock assert macros. This was
not optimized away by the compiler in time for it to still leave the VOP
functions as inlines.
Submitted by: bde
-rw-r--r-- | sys/sys/vnode.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index 89d0fa5..2284127 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -529,13 +529,13 @@ void vop_unlock_post(void *a, int rc); #else -#define ASSERT_VOP_LOCKED(vp, str) do { } while(0) -#define ASSERT_VOP_UNLOCKED(vp, str) do { } while(0) -#define ASSERT_VOP_ELOCKED(vp, str) do { } while(0) -#define ASSERT_VOP_ELOCKED_OTHER(vp, str) do { } while(0) -#define ASSERT_VOP_SLOCKED(vp, str) do { } while(0) -#define ASSERT_VI_UNLOCKED(vp, str) do { } while(0) -#define ASSERT_VI_LOCKED(vp, str) do { } while(0) +#define ASSERT_VOP_LOCKED(vp, str) +#define ASSERT_VOP_UNLOCKED(vp, str) +#define ASSERT_VOP_ELOCKED(vp, str) +#define ASSERT_VOP_ELOCKED_OTHER(vp, str) +#define ASSERT_VOP_SLOCKED(vp, str) +#define ASSERT_VI_UNLOCKED(vp, str) +#define ASSERT_VI_LOCKED(vp, str) #endif |