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
51cc35b3
Unverified
Commit
51cc35b3
authored
Jul 09, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor local variables in stvfe_mutate()
parent
49b29e77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
fellow_storage.c
src/fellow_storage.c
+4
-2
No files found.
src/fellow_storage.c
View file @
51cc35b3
...
@@ -1599,6 +1599,8 @@ stvfe_sumstat(struct worker *wrk)
...
@@ -1599,6 +1599,8 @@ stvfe_sumstat(struct worker *wrk)
int
int
stvfe_mutate
(
struct
worker
*
wrk
,
struct
objcore
*
oc
)
stvfe_mutate
(
struct
worker
*
wrk
,
struct
objcore
*
oc
)
{
{
const
struct
stevedore
*
stv
;
const
struct
stvfe
*
stvfe
;
struct
objhead
*
oh
;
struct
objhead
*
oh
;
int
retval
=
0
;
int
retval
=
0
;
...
@@ -1610,8 +1612,8 @@ stvfe_mutate(struct worker *wrk, struct objcore *oc)
...
@@ -1610,8 +1612,8 @@ stvfe_mutate(struct worker *wrk, struct objcore *oc)
if
(
oc
->
refcnt
==
1
&&
!
Lck_Trylock
(
&
oh
->
mtx
))
{
if
(
oc
->
refcnt
==
1
&&
!
Lck_Trylock
(
&
oh
->
mtx
))
{
if
(
oc
->
refcnt
==
1
)
{
if
(
oc
->
refcnt
==
1
)
{
const
struct
stevedore
*
stv
=
oc_stv
(
wrk
,
oc
);
stv
=
oc_stv
(
wrk
,
oc
);
const
struct
stvfe
*
stvfe
=
stv_stvfe
(
stv
);
stvfe
=
stv_stvfe
(
stv
);
assert_memstv
(
stvfe
,
stv
);
assert_memstv
(
stvfe
,
stv
);
AN
(
oc
->
stobj
->
priv
);
AN
(
oc
->
stobj
->
priv
);
...
...
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