imsm: remove redundant calls to imsm_get_map
MAP_0 is gotten and the beginning, there is no need to get it again. Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
This commit is contained in:
parent
895ffd9929
commit
b65c1f4a23
|
@ -8598,7 +8598,6 @@ static void imsm_set_disk(struct active_array *a, int n, int state)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
end_migration(dev, super, map_state);
|
end_migration(dev, super, map_state);
|
||||||
map = get_imsm_map(dev, MAP_0);
|
|
||||||
map->failed_disk_num = ~0;
|
map->failed_disk_num = ~0;
|
||||||
super->updates_pending++;
|
super->updates_pending++;
|
||||||
a->last_checkpoint = 0;
|
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);
|
end_migration(dev, super, map_state);
|
||||||
else
|
else
|
||||||
map->map_state = map_state;
|
map->map_state = map_state;
|
||||||
map = get_imsm_map(dev, MAP_0);
|
|
||||||
map->failed_disk_num = ~0;
|
map->failed_disk_num = ~0;
|
||||||
super->updates_pending++;
|
super->updates_pending++;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue