dm: don't use idr_remove_all()
authorTejun Heo <[email protected]>
Thu, 28 Feb 2013 01:03:41 +0000 (17:03 -0800)
committerLinus Torvalds <[email protected]>
Thu, 28 Feb 2013 03:10:13 +0000 (19:10 -0800)
idr_destroy() can destroy idr by itself and idr_remove_all() is being
deprecated.  Drop its usage.

Signed-off-by: Tejun Heo <[email protected]>
Cc: Alasdair Kergon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/md/dm.c

index 314a0e2faf79d6c097e7c1201bf25af8600baaf6..9ffa7467d270046075d1fe7bb62556e63987d616 100644 (file)
@@ -318,7 +318,6 @@ static void __exit dm_exit(void)
        /*
         * Should be empty by this point.
         */
-       idr_remove_all(&_minor_idr);
        idr_destroy(&_minor_idr);
 }