Commit 38f910c8 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Li Lingfeng
Browse files

md: factor out a mddev_alloc_unit helper from mddev_find

mainline inclusion
from mainline-v5.13-rc1
commit 85c8c3c1
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8O6NL
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=85c8c3c1f8d9e31f626c93435dd91c2f85603e07



-------------------------------------------------

Split out a self contained helper to find a free minor for the md
"unit" number.

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