diff options
author | Tejun Heo <tj@kernel.org> | 2013-02-27 20:03:37 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-27 22:10:13 -0500 |
commit | 9d60916677603c0bbc6cdc564307744a90586bc9 (patch) | |
tree | cf13f565b4f1d9f7313a1cf6bee90547a37d883d /drivers/block/loop.c | |
parent | c767bf2ed3a3844a9d9341366cc388dab7c7ee05 (diff) |
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 <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r-- | drivers/block/loop.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) | |||
1911 | range = max_loop ? max_loop << part_shift : 1UL << MINORBITS; | 1911 | range = max_loop ? max_loop << part_shift : 1UL << MINORBITS; |
1912 | 1912 | ||
1913 | idr_for_each(&loop_index_idr, &loop_exit_cb, NULL); | 1913 | idr_for_each(&loop_index_idr, &loop_exit_cb, NULL); |
1914 | idr_remove_all(&loop_index_idr); | ||
1915 | idr_destroy(&loop_index_idr); | 1914 | idr_destroy(&loop_index_idr); |
1916 | 1915 | ||
1917 | blk_unregister_region(MKDEV(LOOP_MAJOR, 0), range); | 1916 | blk_unregister_region(MKDEV(LOOP_MAJOR, 0), range); |