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
Kirill Smelkov
linux
Commits
cfae7529
Commit
cfae7529
authored
Apr 11, 2016
by
Mike Snitzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dm: remove unused mapped_device argument from free_tio()
Signed-off-by:
Mike Snitzer
<
snitzer@redhat.com
>
parent
ef1d88ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
drivers/md/dm.c
drivers/md/dm.c
+4
-6
No files found.
drivers/md/dm.c
View file @
cfae7529
...
...
@@ -674,7 +674,7 @@ static void free_io(struct mapped_device *md, struct dm_io *io)
mempool_free
(
io
,
md
->
io_pool
);
}
static
void
free_tio
(
struct
mapped_device
*
md
,
struct
dm_target_io
*
tio
)
static
void
free_tio
(
struct
dm_target_io
*
tio
)
{
bio_put
(
&
tio
->
clone
);
}
...
...
@@ -1055,7 +1055,7 @@ static void clone_endio(struct bio *bio)
!
bdev_get_queue
(
bio
->
bi_bdev
)
->
limits
.
max_write_same_sectors
))
disable_write_same
(
md
);
free_tio
(
md
,
tio
);
free_tio
(
tio
);
dec_pending
(
io
,
error
);
}
...
...
@@ -1517,7 +1517,6 @@ static void __map_bio(struct dm_target_io *tio)
{
int
r
;
sector_t
sector
;
struct
mapped_device
*
md
;
struct
bio
*
clone
=
&
tio
->
clone
;
struct
dm_target
*
ti
=
tio
->
ti
;
...
...
@@ -1540,9 +1539,8 @@ static void __map_bio(struct dm_target_io *tio)
generic_make_request
(
clone
);
}
else
if
(
r
<
0
||
r
==
DM_MAPIO_REQUEUE
)
{
/* error the io and bail out, or requeue it if needed */
md
=
tio
->
io
->
md
;
dec_pending
(
tio
->
io
,
r
);
free_tio
(
md
,
tio
);
free_tio
(
tio
);
}
else
if
(
r
!=
DM_MAPIO_SUBMITTED
)
{
DMWARN
(
"unimplemented target map return value: %d"
,
r
);
BUG
();
...
...
@@ -1663,7 +1661,7 @@ static int __clone_and_map_data_bio(struct clone_info *ci, struct dm_target *ti,
tio
->
len_ptr
=
len
;
r
=
clone_bio
(
tio
,
bio
,
sector
,
*
len
);
if
(
r
<
0
)
{
free_tio
(
ci
->
md
,
tio
);
free_tio
(
tio
);
break
;
}
__map_bio
(
tio
);
...
...
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