diff options
author | 2021-04-12 10:05:30 +0200 | |
---|---|---|
committer | 2021-04-15 11:06:32 -0700 | |
commit | 0d809b3837a0bede8f58a67e303e339585777bf4 (patch) | |
tree | d5b2a07dfb1302dde7fe28666d02f87295986eb2 /lib/test_bitmap.c | |
parent | md: refactor mddev_find_or_alloc (diff) | |
download | linux-dev-0d809b3837a0bede8f58a67e303e339585777bf4.tar.xz linux-dev-0d809b3837a0bede8f58a67e303e339585777bf4.zip |
md: do not return existing mddevs from mddev_find_or_alloc
Instead of returning an existing mddev, just for it to be discarded
later directly return -EEXIST. Rename the function to mddev_alloc now
that it doesn't find an existing mddev.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions