]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: use struct context in reshape_super()
authorMateusz Kusiak <mateusz.kusiak@intel.com>
Mon, 29 Apr 2024 13:07:14 +0000 (15:07 +0200)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Mon, 6 May 2024 23:49:37 +0000 (01:49 +0200)
commit0acda7053df653022e46fa3b7caf1f4d4ba31a66
tree7dc918ba2396735afa81b6f9df4490b9fc0df195
parentbdc2c56998abf76141294b04facf20217cfd1911
mdadm: use struct context in reshape_super()

reshape_super() takes too many arguments. Change passing params in
favor of single struct.

Add devname pointer and change direction members to struct shape
and use it for reshape_super().

Create reshape_array_size() and reshape_array_non_size() to handle
reshape_super() calls.

Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Grow.c
mdadm.h
super-intel.c