loop: replace linked list of allocated devices with an idr index
authorKay Sievers <kay.sievers@vrfy.org>
Sun, 31 Jul 2011 20:08:04 +0000 (22:08 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Sun, 31 Jul 2011 20:08:04 +0000 (22:08 +0200)
commit34dd82afd27da2537199d7f71f1542501c6f96e7
tree35688ccd99d99e16f3c82829eb824703e7460822
parentaa387cc895672b00f807ad7c734a2defaf677712
loop: replace linked list of allocated devices with an idr index

Replace the linked list, that keeps track of allocated devices, with an
idr index to allow a more efficient lookup of devices.

Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/block/loop.c
include/linux/loop.h