]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite2b431cef1f2e5c91444e88bf37a49111eeaa257
treebdf8030536649a8bdee53542d5932352091d8c23
parent84bd3d8ef64e442bd020d3f12f00fb614b2a4bbe
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