Skip to content

Commit

Permalink
dm: remove unused mapped_device argument from free_tio
Browse files Browse the repository at this point in the history
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Mikulas Patocka <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
  • Loading branch information
snitm committed Feb 21, 2022
1 parent 5b27b8d commit 0119ab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ static struct dm_io *alloc_io(struct mapped_device *md, struct bio *bio)
return io;
}

static void free_io(struct mapped_device *md, struct dm_io *io)
static void free_io(struct dm_io *io)
{
bio_put(&io->tio.clone);
}
Expand Down Expand Up @@ -839,7 +839,7 @@ void dm_io_dec_pending(struct dm_io *io, blk_status_t error)

io_error = io->status;
dm_end_io_acct(io);
free_io(md, io);
free_io(io);
smp_wmb();
this_cpu_dec(*md->pending_io);

Expand Down

0 comments on commit 0119ab1

Please sign in to comment.