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

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