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
7943bd6d
Commit
7943bd6d
authored
Feb 02, 2016
by
Mike Snitzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dm mpath: remove unnecessary casts in front of ti->private
Signed-off-by:
Mike Snitzer
<
snitzer@redhat.com
>
parent
78ce23b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/md/dm-mpath.c
drivers/md/dm-mpath.c
+5
-5
No files found.
drivers/md/dm-mpath.c
View file @
7943bd6d
...
...
@@ -402,7 +402,7 @@ static int __multipath_map(struct dm_target *ti, struct request *clone,
union
map_info
*
map_context
,
struct
request
*
rq
,
struct
request
**
__clone
)
{
struct
multipath
*
m
=
(
struct
multipath
*
)
ti
->
private
;
struct
multipath
*
m
=
ti
->
private
;
int
r
=
DM_MAPIO_REQUEUE
;
size_t
nr_bytes
=
clone
?
blk_rq_bytes
(
clone
)
:
blk_rq_bytes
(
rq
);
struct
pgpath
*
pgpath
;
...
...
@@ -1350,7 +1350,7 @@ static int multipath_end_io(struct dm_target *ti, struct request *clone,
*/
static
void
multipath_presuspend
(
struct
dm_target
*
ti
)
{
struct
multipath
*
m
=
(
struct
multipath
*
)
ti
->
private
;
struct
multipath
*
m
=
ti
->
private
;
queue_if_no_path
(
m
,
0
,
1
);
}
...
...
@@ -1369,7 +1369,7 @@ static void multipath_postsuspend(struct dm_target *ti)
*/
static
void
multipath_resume
(
struct
dm_target
*
ti
)
{
struct
multipath
*
m
=
(
struct
multipath
*
)
ti
->
private
;
struct
multipath
*
m
=
ti
->
private
;
unsigned
long
flags
;
spin_lock_irqsave
(
&
m
->
lock
,
flags
);
...
...
@@ -1398,7 +1398,7 @@ static void multipath_status(struct dm_target *ti, status_type_t type,
{
int
sz
=
0
;
unsigned
long
flags
;
struct
multipath
*
m
=
(
struct
multipath
*
)
ti
->
private
;
struct
multipath
*
m
=
ti
->
private
;
struct
priority_group
*
pg
;
struct
pgpath
*
p
;
unsigned
pg_num
;
...
...
@@ -1506,7 +1506,7 @@ static int multipath_message(struct dm_target *ti, unsigned argc, char **argv)
{
int
r
=
-
EINVAL
;
struct
dm_dev
*
dev
;
struct
multipath
*
m
=
(
struct
multipath
*
)
ti
->
private
;
struct
multipath
*
m
=
ti
->
private
;
action_fn
action
;
mutex_lock
(
&
m
->
work_mutex
);
...
...
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