|
@@ -102,7 +102,7 @@ static int linear_map(struct dm_target *ti, struct bio *bio)
|
|
return DM_MAPIO_REMAPPED;
|
|
return DM_MAPIO_REMAPPED;
|
|
}
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_DM_ZONED
|
|
|
|
|
|
+#ifdef CONFIG_BLK_DEV_ZONED
|
|
static int linear_end_io(struct dm_target *ti, struct bio *bio,
|
|
static int linear_end_io(struct dm_target *ti, struct bio *bio,
|
|
blk_status_t *error)
|
|
blk_status_t *error)
|
|
{
|
|
{
|
|
@@ -210,7 +210,7 @@ static size_t linear_dax_copy_to_iter(struct dm_target *ti, pgoff_t pgoff,
|
|
static struct target_type linear_target = {
|
|
static struct target_type linear_target = {
|
|
.name = "linear",
|
|
.name = "linear",
|
|
.version = {1, 4, 0},
|
|
.version = {1, 4, 0},
|
|
-#ifdef CONFIG_DM_ZONED
|
|
|
|
|
|
+#ifdef CONFIG_BLK_DEV_ZONED
|
|
.end_io = linear_end_io,
|
|
.end_io = linear_end_io,
|
|
.features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_ZONED_HM,
|
|
.features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_ZONED_HM,
|
|
#else
|
|
#else
|