]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Factor out code into md_should_do_recovery()
authorWu Guanghao <wuguanghao3@huawei.com>
Mon, 8 Sep 2025 08:20:37 +0000 (16:20 +0800)
committerYu Kuai <yukuai@fnnas.com>
Sat, 8 Nov 2025 08:54:54 +0000 (16:54 +0800)
commit082d680faf262cd52b51ca0b8dcbc7a9f311c220
tree22a0d48b7b82bbb6a8d7d08b96f64f4fe8f200d3
parent0dc76205549b4c25705e54345f211b9f66e018a0
Factor out code into md_should_do_recovery()

In md_check_recovery(), use new helper to make code cleaner.

Link: https://lore.kernel.org/linux-raid/e62894c8-d916-94bc-ef48-3c60e6e1fc5d@huawei.com
Signed-off-by: Wu Guanghao <wuguanghao3@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@fnnas.com>
Signed-off-by: Yu Kuai <yukuai@fnnas.com>
drivers/md/md.c