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
93e2a57d
Unverified
Commit
93e2a57d
authored
Jan 15, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fellow_logcache: do not cram flc allocation
parent
e65323a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
fellow_log.c
src/fellow_log.c
+2
-9
No files found.
src/fellow_log.c
View file @
93e2a57d
...
...
@@ -1167,8 +1167,7 @@ fellow_logcache_init(struct fellow_logcache *flc, struct fellow_fd *ffd,
struct
fellow_logcache_entry
*
fle
;
struct
buddy_reqs
*
reqs
;
size_t
sz
;
unsigned
u
,
l
;
int
cram
;
unsigned
u
;
AN
(
ffd
);
AN
(
flc
);
...
...
@@ -1194,18 +1193,12 @@ fellow_logcache_init(struct fellow_logcache *flc, struct fellow_fd *ffd,
sz
=
n
*
sizeof
*
fle
;
u
=
log2up
(
sz
);
l
=
log2up
(
sizeof
*
fle
);
cram
=
((
int
)
l
-
(
int
)
u
)
+
1
;
assert
(
cram
<=
0
);
if
(
u
>
UINT8_MAX
)
u
=
UINT8_MAX
;
if
(
cram
<
INT8_MIN
)
cram
=
INT8_MIN
;
flc
->
alloc_entry
=
buddy_alloc1_ptr_page_wait
(
ffd
->
membuddy
,
FEP_MEM_FLC
,
(
uint8_t
)
u
,
(
int8_t
)
cram
);
FEP_MEM_FLC
,
(
uint8_t
)
u
,
(
int8_t
)
0
);
AN
(
flc
->
alloc_entry
.
ptr
);
sz
=
(
size_t
)
1
<<
flc
->
alloc_entry
.
bits
;
assert
(
sz
>=
sizeof
*
fle
);
...
...
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