aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Kusiak <mateusz.kusiak@intel.com>2024-01-18 11:28:42 +0100
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-01-24 16:15:17 +0100
commit3f22931f23187f27a47a28afb5f4b7adf46d09aa (patch)
tree639e479365923111fbeb91a7d24dad570d50d0ff
parentb823c8f9d65eb7cf3338036c2a3fedf5128dedbc (diff)
downloadmdadm-3f22931f23187f27a47a28afb5f4b7adf46d09aa.tar.gz
super-intel: Remove inaccessible code
Remove inaccessible "if" statement from imsm_set_array_state(). Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com> Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
-rw-r--r--super-intel.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/super-intel.c b/super-intel.c
index 01fcc6b3..6a664a2e 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -8678,23 +8678,6 @@ static int imsm_set_array_state(struct active_array *a, int consistent)
/* still reshaping, maybe update vol_curr_migr_unit */
goto mark_checkpoint;
} else {
- if (a->last_checkpoint == 0 && a->prev_action == reshape) {
- /* for some reason we aborted the reshape.
- *
- * disable automatic metadata rollback
- * user action is required to recover process
- */
- if (0) {
- struct imsm_map *map2 =
- get_imsm_map(dev, MAP_1);
- dev->vol.migr_state = 0;
- set_migr_type(dev, 0);
- set_vol_curr_migr_unit(dev, 0);
- memcpy(map, map2,
- sizeof_imsm_map(map2));
- super->updates_pending++;
- }
- }
if (a->last_checkpoint >= a->info.component_size) {
unsigned long long array_blocks;
int used_disks;