Blame SOURCES/0027-mdadm-Fix-array-size-mismatch-after-grow.patch

25786b
From 42e02e613fb0b4a2c0c0d984b9e6e2933875bb44 Mon Sep 17 00:00:00 2001
25786b
From: Lukasz Florczak <lukasz.florczak@linux.intel.com>
25786b
Date: Fri, 22 Jul 2022 08:43:47 +0200
25786b
Subject: [PATCH 27/52] mdadm: Fix array size mismatch after grow
25786b
25786b
imsm_fix_size_mismatch() is invoked to fix the problem, but it couldn't
25786b
proceed due to migration check. This patch allows for intended behavior.
25786b
25786b
Signed-off-by: Lukasz Florczak <lukasz.florczak@linux.intel.com>
25786b
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
25786b
---
25786b
 super-intel.c | 2 +-
25786b
 1 file changed, 1 insertion(+), 1 deletion(-)
25786b
25786b
diff --git a/super-intel.c b/super-intel.c
25786b
index 8ffe485c..76b947f5 100644
25786b
--- a/super-intel.c
25786b
+++ b/super-intel.c
25786b
@@ -11854,7 +11854,7 @@ static int imsm_fix_size_mismatch(struct supertype *st, int subarray_index)
25786b
 		unsigned long long d_size = imsm_dev_size(dev);
25786b
 		int u_size;
25786b
 
25786b
-		if (calc_size == d_size || dev->vol.migr_type == MIGR_GEN_MIGR)
25786b
+		if (calc_size == d_size)
25786b
 			continue;
25786b
 
25786b
 		/* There is a difference, confirm that imsm_dev_size is
25786b
-- 
25786b
2.31.1
25786b