Commit adaedbd9 authored by Tejun Heo's avatar Tejun Heo Committed by Linus Torvalds

dm: 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: default avatarTejun Heo <tj@kernel.org>
Cc: Alasdair Kergon <agk@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4d53233a
...@@ -318,7 +318,6 @@ static void __exit dm_exit(void) ...@@ -318,7 +318,6 @@ static void __exit dm_exit(void)
/* /*
* Should be empty by this point. * Should be empty by this point.
*/ */
idr_remove_all(&_minor_idr);
idr_destroy(&_minor_idr); idr_destroy(&_minor_idr);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment