Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tejun Heo and committed by
Linus Torvalds
9d609166 c767bf2e

-1
-1
drivers/block/loop.c
··· 1911 1911 range = max_loop ? max_loop << part_shift : 1UL << MINORBITS; 1912 1912 1913 1913 idr_for_each(&loop_index_idr, &loop_exit_cb, NULL); 1914 - idr_remove_all(&loop_index_idr); 1915 1914 idr_destroy(&loop_index_idr); 1916 1915 1917 1916 blk_unregister_region(MKDEV(LOOP_MAJOR, 0), range);