On 4/4/21 12:15 AM, Christoph Hellwig wrote:
Factor out a self-contained helper to just lookup a mddev by the dev_t "unit". Signed-off-by: Christoph Hellwig <hch@xxxxxx> --- drivers/md/md.c | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/drivers/md/md.c b/drivers/md/md.c index 368cad6cd53a6e..5692427e78ba37 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -734,6 +734,17 @@ void mddev_init(struct mddev *mddev) } EXPORT_SYMBOL_GPL(mddev_init);
I didn't know if I have right to give this patch "Reviewed-by: Heming Zhao <heming.zhao@xxxxxxxx>" But, this patch looks good to me. Thanks, Heming