Page MenuHomeFreeBSD

D34418.id103473.diff
No OneTemporary

D34418.id103473.diff

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

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)

Event Timeline