]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: make freesize required to volume autolayout
authorKinga Stefaniuk <kinga.stefaniuk@intel.com>
Tue, 11 Jun 2024 05:58:49 +0000 (07:58 +0200)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Tue, 11 Jun 2024 12:06:16 +0000 (14:06 +0200)
commit4f3efc34644d06f55fc650e4aa6b5a6ec22cea5f
treeb550499652184782c1b35a5a747892e0aa591e51
parent46f19270265fe54cda1c728cb156b755273b4ab6
imsm: make freesize required to volume autolayout

Autolayout_imsm() shall be executed when IMSM_NO_PLATFORM=1 is set.
It was fixed by listed commit, checking super->orom was removed, but
also checking freesize. Freesize is not set for operations on RAID
volume with no size update, that's why it is not required to have
this value and always run autolayout_imsm().
Fix it by making autolayout_imsm() dependent on freesize.

Fixes: 46f192 ("imsm: fix first volume autolayout with IMSM_NO_PLATFORM")
Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
super-intel.c