Skip to contentSkip to conversation

imsm: remove redundant calls to imsm_get_map

PATCH Applied Mariusz Tkaczyk 2 participants 2 messages Nov 24, 2020 – Nov 25, 2020 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imsm: remove redundant calls to imsm_get_map

MAP_0 is gotten and the beginning, there is no need to get it again.

---
 super-intel.c | 2 --
 1 file changed, 2 deletions(-)
super-intel.c +0 -2
index 9562064..95f4eaf 100644
@@ -8598,7 +8598,6 @@ static void imsm_set_disk(struct active_array *a, int n, int state)
 				break;
 			}
 			end_migration(dev, super, map_state);
-			map = get_imsm_map(dev, MAP_0);
 			map->failed_disk_num = ~0;
 			super->updates_pending++;
 			a->last_checkpoint = 0;
@@ -8610,7 +8609,6 @@ static void imsm_set_disk(struct active_array *a, int n, int state)
 				end_migration(dev, super, map_state);
 			else
 				map->map_state = map_state;
-			map = get_imsm_map(dev, MAP_0);
 			map->failed_disk_num = ~0;
 			super->updates_pending++;
 			break;
Signature · 1 line
2.25.0