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
333fed0d
Unverified
Commit
333fed0d
authored
Feb 06, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fellow_cache: Support pointers not from fbo->region in _busy_region_free
parent
5042ec81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
fellow_cache.c
src/fellow_cache.c
+10
-4
No files found.
src/fellow_cache.c
View file @
333fed0d
...
@@ -2727,10 +2727,16 @@ fellow_busy_region_free(struct fellow_busy *fbo, struct buddy_off_extent *fdr)
...
@@ -2727,10 +2727,16 @@ fellow_busy_region_free(struct fellow_busy *fbo, struct buddy_off_extent *fdr)
CHECK_OBJ_NOTNULL
(
fc
,
FELLOW_CACHE_MAGIC
);
CHECK_OBJ_NOTNULL
(
fc
,
FELLOW_CACHE_MAGIC
);
u
=
fdr
-
&
fbo
->
region
[
0
];
u
=
fdr
-
&
fbo
->
region
[
0
];
assert
(
u
>=
0
);
if
(
!
(
u
>=
0
&&
u
<
fbo
->
nregion
))
{
assert
(
u
<
fbo
->
nregion
);
for
(
u
=
0
;
u
<
fbo
->
nregion
;
u
++
)
if
(
fbo
->
region
[
u
].
off
==
fdr
->
off
)
// obviously: assert(&fbo->region[u] == fdr);
break
;
assert
(
u
<
fbo
->
nregion
);
assert
(
fbo
->
region
[
u
].
size
==
fdr
->
size
);
fbo
->
region
[
u
]
=
buddy_off_extent_nil
;
}
else
assert
(
&
fbo
->
region
[
u
]
==
fdr
);
buddy_return1_off_extent
(
fellow_dskbuddy
(
fc
->
ffd
),
fdr
);
buddy_return1_off_extent
(
fellow_dskbuddy
(
fc
->
ffd
),
fdr
);
...
...
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