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
e7677311
Unverified
Commit
e7677311
authored
Jan 17, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fellow_cache: allocate cache seglists (fcsl) by used size
parent
8881acc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
fellow_cache.c
src/fellow_cache.c
+2
-4
No files found.
src/fellow_cache.c
View file @
e7677311
...
@@ -1905,7 +1905,6 @@ fellow_cache_seglists_load(const struct fellow_cache *fc,
...
@@ -1905,7 +1905,6 @@ fellow_cache_seglists_load(const struct fellow_cache *fc,
struct
buddy_off_extent
next
;
struct
buddy_off_extent
next
;
const
char
*
err
;
const
char
*
err
;
ssize_t
ssz
;
ssize_t
ssz
;
size_t
sz
;
CHECK_OBJ_NOTNULL
(
fc
,
FELLOW_CACHE_MAGIC
);
CHECK_OBJ_NOTNULL
(
fc
,
FELLOW_CACHE_MAGIC
);
...
@@ -1947,10 +1946,9 @@ fellow_cache_seglists_load(const struct fellow_cache *fc,
...
@@ -1947,10 +1946,9 @@ fellow_cache_seglists_load(const struct fellow_cache *fc,
ofcsl
=
fcsl
;
ofcsl
=
fcsl
;
sz
=
fellow_cache_seglist_size
(
fcsl
,
fdsl
->
lsegs
);
fcsl_mem
=
buddy_alloc1_ptr_extent_wait
(
fc
->
membuddy
,
FEP_META
,
fcsl_mem
=
buddy_alloc1_ptr_extent_wait
(
fc
->
membuddy
,
FEP_META
,
sz
,
0
);
fellow_cache_seglist_size
(
fcsl
,
fdsl
->
nsegs
),
0
);
if
(
FC_INJ
||
fcsl_mem
.
ptr
==
NULL
)
{
if
(
FC_INJ
||
fcsl_mem
.
ptr
==
NULL
)
{
err
=
FC_ERRSTR
(
"disk seglist fcsl alloc failed"
);
err
=
FC_ERRSTR
(
"disk seglist fcsl alloc failed"
);
goto
err
;
goto
err
;
...
...
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