Grow: Fix wrong 'goto' in set_new_data_offset

Commit a821c95f11
besides introducing additional message, also changed
direct return to "goto" instruction.
'goto release' will cause routine to return with '-1',
when previously '1' was returned.
Described behaviour breaks e.g. IMSM reshape process.
This patch fixes this issue by changing 'goto' to proper one -
the one that returns '1'.

Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Pawel Baldysiak 2014-11-27 12:35:24 +01:00 committed by NeilBrown
parent 9a518d81fe
commit 16afb1a5ef
1 changed files with 1 additions and 1 deletions

2
Grow.c
View File

@ -2257,7 +2257,7 @@ static int set_new_data_offset(struct mdinfo *sra, struct supertype *st,
/* Metadata doesn't support data_offset changes */
pr_err("%s: Metadata version doesn't support"
" data_offset changes\n", devname);
goto release;
goto fallback;
}
if (before > info2.space_before)
before = info2.space_before;