52a13dbb79
- Incremental: Remove redundant spare movement logic (jsc#SLE-13700, bsc#1180220) 0112-Incremental-Remove-redundant-spare-movement-logic.patch - Dump: get stat from a wrong metadata file when restoring metadata (jsc#SLE-13700) 0113-Dump-get-stat-from-a-wrong-metadata-file-when-restor.patch OBS-URL: https://build.opensuse.org/request/show/860474 OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=193
40 lines
1.2 KiB
Diff
40 lines
1.2 KiB
Diff
From b65c1f4a2340e24ae00babc4399fb4030ff99517 Mon Sep 17 00:00:00 2001
|
|
From: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
|
|
Date: Tue, 24 Nov 2020 15:58:53 +0100
|
|
Subject: [PATCH 11/17] imsm: remove redundant calls to imsm_get_map
|
|
Git-commit: b65c1f4a2340e24ae00babc4399fb4030ff99517
|
|
References: jsc#SLE-13700
|
|
|
|
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>
|
|
Signed-off-by: Coly Li <colyli@suse.de>
|
|
|
|
---
|
|
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.26.2
|
|
|