Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140878116
D54376.id168629.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
768 B
Referenced Files
None
Subscribers
None
D54376.id168629.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D54376: cache: avoid hardcoded zone alignment
Attached
Detach File
Event Timeline
Log In to Comment