]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm-raid: do not include dm-core.h
authorPavel Tikhomirov <ptikhomirov@virtuozzo.com>
Mon, 21 Jul 2025 03:49:13 +0000 (11:49 +0800)
committerMikulas Patocka <mpatocka@redhat.com>
Thu, 31 Jul 2025 13:39:55 +0000 (15:39 +0200)
commit8d05316d79d8afd20ba767efea8706d8238a9d46
tree26251beabeb99b5e1b2521a163fa57e6bc6643a2
parent225b2cb640d7ddbb2df38130f3f34f4a84497426
dm-raid: do not include dm-core.h

In commit 4cc96131afce ("dm: move request-based code out to dm-rq.[hc]")
we have a note: "DM targets should _never_ include dm-core.h!". And it
is not used in any DM targets except dm-raid now, so let's remove it
from dm-raid for consistency, also use special helpers instead of
accessing dm_table and mapper_device fields directly. This change is
merely a cleanup and should not affect functionality.

Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-raid.c