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
8ae3234e
Unverified
Commit
8ae3234e
authored
Dec 14, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use BUDDY_POOL_AVAIL_FUNC() for fellow_logblk_new()
parent
1beb0f5d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
fellow_log.c
src/fellow_log.c
+5
-9
No files found.
src/fellow_log.c
View file @
8ae3234e
...
@@ -427,6 +427,7 @@ BUDDY_REQS(lbuf_dskpool_mem_s, 1);
...
@@ -427,6 +427,7 @@ BUDDY_REQS(lbuf_dskpool_mem_s, 1);
// mem block pool
// mem block pool
BUDDY_POOL
(
lbuf_mempool
,
4
);
// XXX 4 good?
BUDDY_POOL
(
lbuf_mempool
,
4
);
// XXX 4 good?
BUDDY_POOL_GET_FUNC
(
lbuf_mempool
,
static
)
BUDDY_POOL_GET_FUNC
(
lbuf_mempool
,
static
)
BUDDY_POOL_AVAIL_FUNC
(
lbuf_mempool
,
static
)
// memory for flush_finish
// memory for flush_finish
BUDDY_POOL
(
lbuf_ffpool
,
1
);
BUDDY_POOL
(
lbuf_ffpool
,
1
);
BUDDY_POOL_GET_FUNC
(
lbuf_ffpool
,
static
)
BUDDY_POOL_GET_FUNC
(
lbuf_ffpool
,
static
)
...
@@ -2218,15 +2219,10 @@ fellow_logblk_new(
...
@@ -2218,15 +2219,10 @@ fellow_logblk_new(
struct
fellow_disk_log_block
*
logblk
;
struct
fellow_disk_log_block
*
logblk
;
struct
buddy_ptr_page
e
;
struct
buddy_ptr_page
e
;
if
(
wait
==
0
)
{
if
(
wait
==
0
&&
lbuf_mempool_avail
(
lbuf
->
mempool
)
==
0
)
// XXX mempool non waiting?
e
=
buddy_alloc1_ptr_page
(
lbuf
->
membuddy
,
MIN_FELLOW_BITS
,
0
);
if
(
e
.
ptr
==
NULL
)
return
(
NULL
);
return
(
NULL
);
}
else
e
=
buddy_get_next_ptr_page
(
lbuf_mempool_get
(
lbuf
->
mempool
,
lbuf
));
e
=
buddy_get_next_ptr_page
(
lbuf_mempool_get
(
lbuf
->
mempool
,
lbuf
));
AN
(
e
.
ptr
);
AN
(
e
.
ptr
);
//lint -e{587} false positive, definitely -- assertion is true
//lint -e{587} false positive, definitely -- assertion is true
...
...
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