From: Tejun Heo Date: Thu, 28 Feb 2013 01:03:37 +0000 (-0800) Subject: block/loop: don't use idr_remove_all() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9d60916677603c0bbc6cdc564307744a90586bc9;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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 Signed-off-by: Linus Torvalds --- diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 8031a8cdd698..c674e5492ec4 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -1911,7 +1911,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);