md: factor out a helper rdev_removeable() from remove_and_add_spares()
authorYu Kuai <yukuai3@huawei.com>
Fri, 25 Aug 2023 03:16:19 +0000 (11:16 +0800)
committerSong Liu <song@kernel.org>
Fri, 22 Sep 2023 17:28:25 +0000 (10:28 -0700)
commit3389d57f97531efe9e285a0740c9b767d6f29f6c
tree8eb7ac17734800c32e9b01bed26b032aeaeb115c
parentdb5e653d7c9fae8ed61da58ab5e9a8db2cd61a2b
md: factor out a helper rdev_removeable() from remove_and_add_spares()

There are no functional changes, just to make the code simpler and
prepare to delay remove_and_add_spares() to md_start_sync().

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230825031622.1530464-5-yukuai1@huaweicloud.com
drivers/md/md.c