]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
md: use mddev_is_dm() instead of open-coding gendisk checks
authorAbd-Alrhman Masalkhi <abd.masalkhi@gmail.com>
Thu, 23 Apr 2026 10:13:02 +0000 (12:13 +0200)
committerYu Kuai <yukuai@fnnas.com>
Tue, 28 Apr 2026 12:44:38 +0000 (20:44 +0800)
commit408434a3245cc6ea981df4edd7fbf0be49856727
tree3c5445f4f1555ecd0e16ec37c789ecf6a19b7c6e
parentc1a3cdb0b49fff28d90e2c33114a7c0058261f60
md: use mddev_is_dm() instead of open-coding gendisk checks

Replace direct checks on mddev->gendisk with mddev_is_dm() in
md_handle_request() and md_run().

Signed-off-by: Abd-Alrhman Masalkhi <abd.masalkhi@gmail.com>
Link: https://lore.kernel.org/linux-raid/20260423101303.48196-3-abd.masalkhi@gmail.com
Signed-off-by: Yu Kuai <yukuai@fnnas.com>
drivers/md/md.c