md: factor out a mddev_alloc_unit helper from mddev_find
Split out a self contained helper to find a free minor for the md "unit" number. Signed-off-by:Christoph Hellwig <hch@lst.de> Signed-off-by:
Song Liu <song@kernel.org>
Showing
Please register or sign in to comment