]> www.infradead.org Git - users/hch/block.git/commit
md: add a mddev_is_dm helper
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Feb 2024 14:28:50 +0000 (09:28 -0500)
committerChristoph Hellwig <hch@lst.de>
Sat, 2 Mar 2024 14:11:40 +0000 (07:11 -0700)
commite41ecd89a92ed53762c7fad68de265b21c3cd3a5
tree4e768197d335872b3dd15f17d504a3f12916ec22
parentaf49467f32c60aea5dc12313f21d396ec280d135
md: add a mddev_is_dm helper

Add a helper to check for a DM-mapped MD device instead of using
the obfuscated ->gendisk or ->queue NULL checks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed--by: Song Liu <song@kernel.org>
Tested-by: Song Liu <song@kernel.org>
drivers/md/md.c
drivers/md/md.h
drivers/md/raid0.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c