]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/md/md.c
md: factor out a mddev_find_locked helper from mddev_find
authorChristoph Hellwig <hch@lst.de>
Sat, 3 Apr 2021 16:15:28 +0000 (18:15 +0200)
committerSong Liu <song@kernel.org>
Thu, 8 Apr 2021 05:41:26 +0000 (22:41 -0700)
commit8b57251f9a91f5e5a599de7549915d2d226cc3af
tree6f73ef1c1c7455464ff00120bf706135fdd1f6f4
parent6a4db2a60306eb65bfb14ccc9fde035b74a4b4e7
md: factor out a mddev_find_locked helper from mddev_find

Factor out a self-contained helper to just lookup a mddev by the dev_t
"unit".

Cc: stable@vger.kernel.org
Reviewed-by: Heming Zhao <heming.zhao@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/md.c