From: Tejun Heo Date: Wed, 20 Feb 2013 02:16:03 +0000 (+1100) Subject: block/loop: don't use idr_remove_all() X-Git-Tag: next-20130220~1^2~197 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=936b3c934be8d520f24f1b653ee3e60e738edcbe;p=karo-tx-linux.git block/loop: don't use idr_remove_all() idr_destroy() can destroy idr by itself and idr_remove_all() is being deprecated. Drop its usage. Signed-off-by: Tejun Heo Cc: Jens Axboe Signed-off-by: Andrew Morton --- diff --git a/drivers/block/loop.c b/drivers/block/loop.c index bef9d63b0c83..dc3891e6b5e8 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -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);