md: add a mddev_add_trace_msg helper
authorChristoph Hellwig <hch@lst.de>
Sun, 3 Mar 2024 14:01:41 +0000 (07:01 -0700)
committerSong Liu <song@kernel.org>
Wed, 6 Mar 2024 16:59:52 +0000 (08:59 -0800)
commit28be4fd310d146e9a43d7b1bb55cb7e9f5e06e88
treea00c0353b4eeac2164f39ba6ff028c49f326d09b
parentc396b90e502691fc6ff7b43984cfd9d1b15aaa80
md: add a mddev_add_trace_msg helper

Add a small wrapper around blk_add_trace_msg 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-3-hch@lst.de
drivers/md/md-bitmap.c
drivers/md/md.c
drivers/md/md.h
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c