Messages in this thread Patch in this message | | | From | Tejun Heo <> | Subject | [PATCH 03/14] block/loop: don't use idr_remove_all() | Date | Fri, 25 Jan 2013 17:31:01 -0800 |
| |
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> --- This patch depends on an earlier idr patch and given the trivial nature of the patch, I think it would be best to route these together through -mm. Please holler if there's any objection.
Thanks.
drivers/block/loop.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index ae12512..3b9c32b 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); -- 1.8.1
| |