Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
slash
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
slash
Commits
7576da5e
Unverified
Commit
7576da5e
authored
Jul 15, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bring struct fellow_busy below 4KB
Closes #16
parent
07640fa0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
fellow_cache.c
src/fellow_cache.c
+8
-5
No files found.
src/fellow_cache.c
View file @
7576da5e
...
@@ -468,6 +468,10 @@ struct fellow_busy {
...
@@ -468,6 +468,10 @@ struct fellow_busy {
unsigned
magic
;
unsigned
magic
;
#define FELLOW_BUSY_MAGIC 0x8504a132
#define FELLOW_BUSY_MAGIC 0x8504a132
// for fellow_busy_setattr()
uint32_t
va_data_len
;
uint8_t
*
va_data
;
struct
buddy_ptr_extent
fbo_mem
;
struct
buddy_ptr_extent
fbo_mem
;
size_t
sz_estimate
;
size_t
sz_estimate
;
...
@@ -489,15 +493,11 @@ struct fellow_busy {
...
@@ -489,15 +493,11 @@ struct fellow_busy {
struct
buddy_off_extent
region
[
FCO_MAX_REGIONS
];
struct
buddy_off_extent
region
[
FCO_MAX_REGIONS
];
unsigned
nregion
;
unsigned
nregion
;
#define FBO_NIO 11
/* protected by fco mtx */
/* protected by fco mtx */
uint8_t
io_idx
;
uint8_t
io_idx
;
uint8_t
io_outstanding
;
uint8_t
io_outstanding
;
#define FBO_NIO FCO_MAX_REGIONS
struct
fellow_busy_io
io
[
FBO_NIO
];
struct
fellow_busy_io
io
[
FBO_NIO
];
// for fellow_busy_setattr()
uint32_t
va_data_len
;
uint8_t
*
va_data
;
};
};
struct
fellow_cache
{
struct
fellow_cache
{
...
@@ -5014,6 +5014,9 @@ main(int argc, char **argv)
...
@@ -5014,6 +5014,9 @@ main(int argc, char **argv)
{
{
unsigned
l
,
hash
;
unsigned
l
,
hash
;
DBG
(
"fellow_busy %zu"
,
sizeof
(
struct
fellow_busy
));
assert
(
sizeof
(
struct
fellow_busy
)
<=
MIN_FELLOW_BLOCK
);
#ifdef HAVE_XXHASH_H
#ifdef HAVE_XXHASH_H
l
=
FH_LIM
;
l
=
FH_LIM
;
#else
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment