summaryrefslogtreecommitdiff
path: root/Grow.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-07-01 15:10:05 +1000
committerNeilBrown <neilb@suse.de>2013-07-01 15:10:05 +1000
commit2eba849621011a5160b4597f82aa4ed0de7d4e64 (patch)
treebc692036f3889927542d9d0d1b12a8b305e082f9 /Grow.c
parentefc67e8e9fe430d5833236f16ea287ef363dadc5 (diff)
Manage: check alignment when stopping an array undergoing reshape.
To be able to revert-reshape of raid4/5/6 which is changing the number of devices, the reshape must has been stopped on a multiple of the old and new stripe sizes. The kernel only enforces the new stripe size multiple. So we enforce the old-stripe-size multiple by careful use of "sync_max" and monitoring "reshape_position". Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Grow.c')
-rw-r--r--Grow.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/Grow.c b/Grow.c
index 0e20b240..e27d29ff 100644
--- a/Grow.c
+++ b/Grow.c
@@ -929,17 +929,6 @@ int reshape_open_backup_file(char *backup_file,
return 1;
}
-unsigned long GCD(unsigned long a, unsigned long b)
-{
- while (a != b) {
- if (a < b)
- b -= a;
- if (b < a)
- a -= b;
- }
- return a;
-}
-
unsigned long compute_backup_blocks(int nchunk, int ochunk,
unsigned int ndata, unsigned int odata)
{