]> git.baikalelectronics.ru Git - kernel.git/commit
loop: don't call loop_lookup before adding a loop device
authorChristoph Hellwig <hch@lst.de>
Wed, 23 Jun 2021 14:59:03 +0000 (16:59 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jun 2021 21:34:13 +0000 (15:34 -0600)
commit4157fe0b3d16ceca4316674a90c681405cdd23bf
tree71acbf63a70ad511ddd935fb064535e613905ab1
parentd6da83d072c187d6a69d5a49e2320f62920889d7
loop: don't call loop_lookup before adding a loop device

loop_add returns the right error if the slot wasn't available.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210623145908.92973-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c