Page MenuHomeFreeBSD

D54376.id168629.diff
No OneTemporary

D54376.id168629.diff

diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -404,12 +404,10 @@
TAILQ_HEAD(cache_freebatch, namecache);
/*
- * At least mips n32 performs 64-bit accesses to timespec as found
- * in namecache_ts and requires them to be aligned. Since others
- * may be in the same spot suffer a little bit and enforce the
- * alignment for everyone. Note this is a nop for 64-bit platforms.
+ * Ensure all zones are sufficently aligned for both a time_t (8-bytes on
+ * non-i386 32-bit architectures) and pointers.
*/
-#define CACHE_ZONE_ALIGNMENT UMA_ALIGNOF(time_t)
+#define CACHE_ZONE_ALIGNMENT UMA_ALIGNOF(struct namecache_ts)
/*
* TODO: the initial value of CACHE_PATH_CUTOFF was inherited from the

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 30, 4:27 AM (2 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27311550
Default Alt Text
D54376.id168629.diff (768 B)

Event Timeline