loop: split loop_lookup
authorChristoph Hellwig <hch@lst.de>
Wed, 23 Jun 2021 14:59:07 +0000 (16:59 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jun 2021 21:34:13 +0000 (15:34 -0600)
commitb9848081465d8734441408129bd44311c7b6d644
treebdf8030536649a8bdee53542d5932352091d8c23
parente5d66a10324f2a0c31153fd6210d99a9d00ef047
loop: split loop_lookup

loop_lookup has two callers - one wants to do the a find by index and the
other wants any unbound loop device.  Open code the respective
functionality in each caller.

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