* [PATCH] imsm: remove redundant calls to imsm_get_map
@ 2020-11-24 14:58 Mariusz Tkaczyk
2020-11-25 23:08 ` Jes Sorensen
0 siblings, 1 reply; 2+ messages in thread
From: Mariusz Tkaczyk @ 2020-11-24 14:58 UTC (permalink / raw)
To: jes; +Cc: linux-raid
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>
---
super-intel.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/super-intel.c b/super-intel.c
index 9562064..95f4eaf 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -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;
--
2.25.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] imsm: remove redundant calls to imsm_get_map
2020-11-24 14:58 [PATCH] imsm: remove redundant calls to imsm_get_map Mariusz Tkaczyk
@ 2020-11-25 23:08 ` Jes Sorensen
0 siblings, 0 replies; 2+ messages in thread
From: Jes Sorensen @ 2020-11-25 23:08 UTC (permalink / raw)
To: Mariusz Tkaczyk; +Cc: linux-raid
On 11/24/20 9:58 AM, Mariusz Tkaczyk wrote:
> 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>
> ---
> super-intel.c | 2 --
> 1 file changed, 2 deletions(-)
Applied!
Thanks,
Jes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-25 23:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-24 14:58 [PATCH] imsm: remove redundant calls to imsm_get_map Mariusz Tkaczyk
2020-11-25 23:08 ` Jes Sorensen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.