]> www.infradead.org Git - users/hch/block.git/commit
loop: rewrite loop_find_unbound using idr_for_each_entry loop
authorChristoph Hellwig <hch@lst.de>
Thu, 17 Jun 2021 07:38:54 +0000 (09:38 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jun 2021 07:38:54 +0000 (09:38 +0200)
commitd3cb02c73173db62632abaa14605a53034f21587
tree1fd333df91ffc85b5541fc4781a03ebbccd9c2d3
parent368917c181a2fc3045409428d83b9a2b99744b57
loop: rewrite loop_find_unbound using idr_for_each_entry

Use idr_for_each_entry to simplify the search for an unbound loop device.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/block/loop.c