Page MenuHomeFreeBSD

D34418.diff
No OneTemporary

D34418.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
Fri, Oct 4, 1:26 PM (21 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13552144
Default Alt Text
D34418.diff (469 B)

Event Timeline