diff options
author | Christoph Hellwig <hch@lst.de> | 2024-03-03 15:01:40 +0100 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2024-03-06 17:59:52 +0100 |
commit | c396b90e502691fc6ff7b43984cfd9d1b15aaa80 (patch) | |
tree | 9c36ee2b90f098178645ada275d2c936cfaa8086 /drivers/md/raid0.c | |
parent | Merge branch 'dmraid-fix-6.9' into md-6.9 (diff) | |
download | linux-c396b90e502691fc6ff7b43984cfd9d1b15aaa80.tar.xz linux-c396b90e502691fc6ff7b43984cfd9d1b15aaa80.zip |
md: add a mddev_trace_remap helper
Add a helper to trace bio remapping that hides some argument
dereferences and the check for a DM-mapped MD device.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed--by: Song Liu <song@kernel.org>
Tested-by: Song Liu <song@kernel.org>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240303140150.5435-2-hch@lst.de
Diffstat (limited to 'drivers/md/raid0.c')
-rw-r--r-- | drivers/md/raid0.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c index c50a7abda744..aff094de9743 100644 --- a/drivers/md/raid0.c +++ b/drivers/md/raid0.c @@ -578,10 +578,7 @@ static void raid0_map_submit_bio(struct mddev *mddev, struct bio *bio) bio_set_dev(bio, tmp_dev->bdev); bio->bi_iter.bi_sector = sector + zone->dev_start + tmp_dev->data_offset; - - if (mddev->gendisk) - trace_block_bio_remap(bio, disk_devt(mddev->gendisk), - bio_sector); + mddev_trace_remap(mddev, bio, bio_sector); mddev_check_write_zeroes(mddev, bio); submit_bio_noacct(bio); } |