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
07640fa0
Unverified
Commit
07640fa0
authored
Jul 15, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename define for (struct fellow_busy).io size
Ref #16
parent
e3a45409
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
fellow_cache.c
src/fellow_cache.c
+4
-3
No files found.
src/fellow_cache.c
View file @
07640fa0
...
@@ -492,7 +492,8 @@ struct fellow_busy {
...
@@ -492,7 +492,8 @@ struct fellow_busy {
/* protected by fco mtx */
/* protected by fco mtx */
uint8_t
io_idx
;
uint8_t
io_idx
;
uint8_t
io_outstanding
;
uint8_t
io_outstanding
;
struct
fellow_busy_io
io
[
FCO_MAX_REGIONS
];
#define FBO_NIO FCO_MAX_REGIONS
struct
fellow_busy_io
io
[
FBO_NIO
];
// for fellow_busy_setattr()
// for fellow_busy_setattr()
uint32_t
va_data_len
;
uint32_t
va_data_len
;
...
@@ -596,10 +597,10 @@ fellow_busy_io_get(struct fellow_busy *fbo, struct fellow_busy_io *stk)
...
@@ -596,10 +597,10 @@ fellow_busy_io_get(struct fellow_busy *fbo, struct fellow_busy_io *stk)
AN
(
stk
);
AN
(
stk
);
for
(
u
=
0
;
u
<
F
CO_MAX_REGIONS
;
u
++
)
{
for
(
u
=
0
;
u
<
F
BO_NIO
;
u
++
)
{
fbio
=
&
fbo
->
io
[
fbo
->
io_idx
];
fbio
=
&
fbo
->
io
[
fbo
->
io_idx
];
fbo
->
io_idx
++
;
fbo
->
io_idx
++
;
fbo
->
io_idx
%=
F
CO_MAX_REGIONS
;
fbo
->
io_idx
%=
F
BO_NIO
;
if
(
fbio
->
magic
==
0
&&
fbio
->
type
==
FBIO_INVAL
)
{
if
(
fbio
->
magic
==
0
&&
fbio
->
type
==
FBIO_INVAL
)
{
INIT_OBJ
(
fbio
,
FELLOW_BUSY_IO_MAGIC
);
INIT_OBJ
(
fbio
,
FELLOW_BUSY_IO_MAGIC
);
fbio
->
fbo
=
fbo
;
fbio
->
fbo
=
fbo
;
...
...
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