]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
block/loop: don't use idr_remove_all()
authorTejun Heo <tj@kernel.org>
Wed, 20 Feb 2013 02:16:03 +0000 (13:16 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:39 +0000 (16:53 +1100)
idr_destroy() can destroy idr by itself and idr_remove_all() is being
deprecated.  Drop its usage.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/loop.c

index bef9d63b0c838d7f0da1d6b8c64a534026d4b18e..dc3891e6b5e8fcecd069da2c9671a3676007e52b 100644 (file)
@@ -1908,7 +1908,6 @@ static void __exit loop_exit(void)
        range = max_loop ? max_loop << part_shift : 1UL << MINORBITS;
 
        idr_for_each(&loop_index_idr, &loop_exit_cb, NULL);
-       idr_remove_all(&loop_index_idr);
        idr_destroy(&loop_index_idr);
 
        blk_unregister_region(MKDEV(LOOP_MAJOR, 0), range);