Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144563545
D54553.1775483353.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
782 B
Referenced Files
None
Subscribers
None
D54553.1775483353.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
Mon, Apr 6, 1:49 PM (3 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27600007
Default Alt Text
D54553.1775483353.diff (782 B)
Attached To
Mode
D54553: cache: avoid hardcoded cache padding
Attached
Detach File
Event Timeline
Log In to Comment