diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-11 01:18:39 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-11 01:18:39 -0400 |
| commit | 9dcd936c5312f870955f108e8a1bfebf3eb6f688 (patch) | |
| tree | 907532488dd7ba0562159d5534b8a52bc2c739b5 | |
| parent | 4718dcad7decac3a43b7339b2226f3d987cca75c (diff) | |
| parent | 118aa47c7072bce05fc39bd40a1c0a90caed72ab (diff) | |
Merge tag 'for-4.19/dm-fixes-4' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
Mike writes:
"device mapper fix for 4.19 final
- Fix for earlier 4.19 final DM linear change that incorrectly
checked for CONFIG_DM_ZONED rather than CONFIG_BLK_DEV_ZONED."
* tag 'for-4.19/dm-fixes-4' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
dm linear: fix linear_end_io conditional definition
| -rw-r--r-- | drivers/md/dm-flakey.c | 2 | ||||
| -rw-r--r-- | drivers/md/dm-linear.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/md/dm-flakey.c b/drivers/md/dm-flakey.c index 21d126a5078c..32aabe27b37c 100644 --- a/drivers/md/dm-flakey.c +++ b/drivers/md/dm-flakey.c | |||
| @@ -467,7 +467,9 @@ static int flakey_iterate_devices(struct dm_target *ti, iterate_devices_callout_ | |||
| 467 | static struct target_type flakey_target = { | 467 | static struct target_type flakey_target = { |
| 468 | .name = "flakey", | 468 | .name = "flakey", |
| 469 | .version = {1, 5, 0}, | 469 | .version = {1, 5, 0}, |
| 470 | #ifdef CONFIG_BLK_DEV_ZONED | ||
| 470 | .features = DM_TARGET_ZONED_HM, | 471 | .features = DM_TARGET_ZONED_HM, |
| 472 | #endif | ||
| 471 | .module = THIS_MODULE, | 473 | .module = THIS_MODULE, |
| 472 | .ctr = flakey_ctr, | 474 | .ctr = flakey_ctr, |
| 473 | .dtr = flakey_dtr, | 475 | .dtr = flakey_dtr, |
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c index 172f6fa83c0d..2f7c44a006c4 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c | |||
| @@ -102,7 +102,7 @@ static int linear_map(struct dm_target *ti, struct bio *bio) | |||
| 102 | return DM_MAPIO_REMAPPED; | 102 | return DM_MAPIO_REMAPPED; |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | #ifdef CONFIG_DM_ZONED | 105 | #ifdef CONFIG_BLK_DEV_ZONED |
| 106 | static int linear_end_io(struct dm_target *ti, struct bio *bio, | 106 | static int linear_end_io(struct dm_target *ti, struct bio *bio, |
| 107 | blk_status_t *error) | 107 | blk_status_t *error) |
| 108 | { | 108 | { |
| @@ -210,7 +210,7 @@ static size_t linear_dax_copy_to_iter(struct dm_target *ti, pgoff_t pgoff, | |||
| 210 | static struct target_type linear_target = { | 210 | static struct target_type linear_target = { |
| 211 | .name = "linear", | 211 | .name = "linear", |
| 212 | .version = {1, 4, 0}, | 212 | .version = {1, 4, 0}, |
| 213 | #ifdef CONFIG_DM_ZONED | 213 | #ifdef CONFIG_BLK_DEV_ZONED |
| 214 | .end_io = linear_end_io, | 214 | .end_io = linear_end_io, |
| 215 | .features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_ZONED_HM, | 215 | .features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_ZONED_HM, |
| 216 | #else | 216 | #else |
