Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168252750
D54553.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
782 B
Referenced Files
None
Subscribers
None
D54553.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
@@ -420,10 +420,8 @@
*/
#ifdef __LP64__
#define CACHE_PATH_CUTOFF 45
-#define CACHE_LARGE_PAD 6
#else
#define CACHE_PATH_CUTOFF 41
-#define CACHE_LARGE_PAD 2
#endif
#define CACHE_ZONE_SMALL_SIZE \
@@ -431,7 +429,8 @@
#define CACHE_ZONE_SMALL_TS_SIZE \
(offsetof(struct namecache_ts, nc_nc) + CACHE_ZONE_SMALL_SIZE)
#define CACHE_ZONE_LARGE_SIZE \
- (offsetof(struct namecache, nc_name) + NAME_MAX + 1 + CACHE_LARGE_PAD)
+ roundup2(offsetof(struct namecache, nc_name) + NAME_MAX + 1, \
+ _Alignof(struct namecache_ts))
#define CACHE_ZONE_LARGE_TS_SIZE \
(offsetof(struct namecache_ts, nc_nc) + CACHE_ZONE_LARGE_SIZE)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 28, 4:55 AM (17 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37436454
Default Alt Text
D54553.diff (782 B)
Attached To
Mode
D54553: cache: avoid hardcoded cache padding
Attached
Detach File
Event Timeline
Log In to Comment