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> Signed-off-by:
Song Liu <song@kernel.org> Link: https://lore.kernel.org/r/20240303140150.5435-4-hch@lst.de
Showing
Please register or sign in to comment