Skip to content
Commit d144fe6f authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Song Liu
Browse files

md: refactor mddev_find_or_alloc



Allocate the new mddev first speculatively, which greatly simplifies
the code flow.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarSong Liu <song@kernel.org>
parent 85c8c3c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment