Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105533229
D34418.id103473.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
469 B
Referenced Files
None
Subscribers
None
D34418.id103473.diff
View Options
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -462,7 +462,8 @@
/* Shift count for (uintptr_t)vp to initialize vp->v_hash. */
#define vnsz2log 8
#ifndef DEBUG_LOCKS
-_Static_assert((sizeof(struct vnode) >= 256) && (sizeof(struct vnode) < 512),
+_Static_assert(sizeof(struct vnode) >= 1UL << vnsz2log &&
+ sizeof(struct vnode) < 1UL << (vnsz2log + 1),
"vnsz2log needs to be updated");
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 18, 8:55 AM (15 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15480335
Default Alt Text
D34418.id103473.diff (469 B)
Attached To
Mode
D34418: Use vnsz2log directly in assertion on its relation to sizeof(struct vnode).
Attached
Detach File
Event Timeline
Log In to Comment