summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2022-02-17 23:40:18 -0500
committerMike Snitzer <snitzer@redhat.com>2022-02-21 15:36:27 -0500
commit0119ab14c31587198daed671a5bf949df2c14552 (patch)
tree736e7af0c722ba83027dfd709c891f1e1b43f103 /drivers/md/dm.c
parent5b27b8ddbf37962fae8131cf595231b1be2c2b27 (diff)
downloadlinux-stable-0119ab14c31587198daed671a5bf949df2c14552.tar.gz
linux-stable-0119ab14c31587198daed671a5bf949df2c14552.tar.bz2
linux-stable-0119ab14c31587198daed671a5bf949df2c14552.zip
dm: remove unused mapped_device argument from free_tio
Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index c7246b00d363..b8cdd8c78c0e 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -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);
}
@@ -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);