Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
2e584bce
Commit
2e584bce
authored
Jan 15, 2018
by
Ilya Dryomov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rbd: obj_request->completion is unused
Signed-off-by:
Ilya Dryomov
<
idryomov@gmail.com
>
parent
d8a5b805
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
drivers/block/rbd.c
drivers/block/rbd.c
+1
-6
No files found.
drivers/block/rbd.c
View file @
2e584bce
...
@@ -281,7 +281,6 @@ struct rbd_obj_request {
...
@@ -281,7 +281,6 @@ struct rbd_obj_request {
int
result
;
int
result
;
rbd_obj_callback_t
callback
;
rbd_obj_callback_t
callback
;
struct
completion
completion
;
struct
kref
kref
;
struct
kref
kref
;
};
};
...
@@ -1734,10 +1733,7 @@ static void rbd_obj_request_complete(struct rbd_obj_request *obj_request)
...
@@ -1734,10 +1733,7 @@ static void rbd_obj_request_complete(struct rbd_obj_request *obj_request)
{
{
dout
(
"%s: obj %p cb %p
\n
"
,
__func__
,
obj_request
,
dout
(
"%s: obj %p cb %p
\n
"
,
__func__
,
obj_request
,
obj_request
->
callback
);
obj_request
->
callback
);
if
(
obj_request
->
callback
)
obj_request
->
callback
(
obj_request
);
obj_request
->
callback
(
obj_request
);
else
complete_all
(
&
obj_request
->
completion
);
}
}
static
void
rbd_obj_request_error
(
struct
rbd_obj_request
*
obj_request
,
int
err
)
static
void
rbd_obj_request_error
(
struct
rbd_obj_request
*
obj_request
,
int
err
)
...
@@ -2013,7 +2009,6 @@ rbd_obj_request_create(enum obj_request_type type)
...
@@ -2013,7 +2009,6 @@ rbd_obj_request_create(enum obj_request_type type)
obj_request
->
which
=
BAD_WHICH
;
obj_request
->
which
=
BAD_WHICH
;
obj_request
->
type
=
type
;
obj_request
->
type
=
type
;
INIT_LIST_HEAD
(
&
obj_request
->
links
);
INIT_LIST_HEAD
(
&
obj_request
->
links
);
init_completion
(
&
obj_request
->
completion
);
kref_init
(
&
obj_request
->
kref
);
kref_init
(
&
obj_request
->
kref
);
dout
(
"%s %p
\n
"
,
__func__
,
obj_request
);
dout
(
"%s %p
\n
"
,
__func__
,
obj_request
);
...
...
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