Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150384634
D41070.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
626 B
Referenced Files
None
Subscribers
None
D41070.diff
View Options
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -4028,9 +4028,9 @@
{
int error;
- MPASS((lkflags1 & LK_SHARED) != 0 ^ (lkflags1 & LK_EXCLUSIVE) != 0);
+ MPASS(((lkflags1 & LK_SHARED) != 0) ^ ((lkflags1 & LK_EXCLUSIVE) != 0));
MPASS((lkflags1 & ~(LK_SHARED | LK_EXCLUSIVE | LK_NODDLKTREAT)) == 0);
- MPASS((lkflags2 & LK_SHARED) != 0 ^ (lkflags2 & LK_EXCLUSIVE) != 0);
+ MPASS(((lkflags2 & LK_SHARED) != 0) ^ ((lkflags2 & LK_EXCLUSIVE) != 0));
MPASS((lkflags2 & ~(LK_SHARED | LK_EXCLUSIVE | LK_NODDLKTREAT)) == 0);
if (vp1 == NULL && vp2 == NULL)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 1, 6:32 PM (7 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30678368
Default Alt Text
D41070.diff (626 B)
Attached To
Mode
D41070: vfs: Add a parenthese to vn_lock_pair() asserts to silence gcc
Attached
Detach File
Event Timeline
Log In to Comment