]> git.ipfire.org Git - thirdparty/mdadm.git/commit
monitor: refactor checkpoint update
authorMateusz Kusiak <mateusz.kusiak@intel.com>
Thu, 18 Jan 2024 10:30:16 +0000 (11:30 +0100)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Tue, 20 Feb 2024 13:04:49 +0000 (14:04 +0100)
commitcf87fe75fd83dac008ea116c2c52ec69783fdf6a
treeafdb9d28ac40c81cc9f52744e74037b184dc5f3d
parentaec3b907de48be54106600a1ecb69d1231f4801d
monitor: refactor checkpoint update

"if" statements of checkpoint updates have too many responsibilties.
This results in unclear code flow and duplicated code.

Refactor checkpoint update code and simplify "if" statements.

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