]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfs: idr_destroy() no longer needs idr_remove_all()
authorTejun Heo <tj@kernel.org>
Wed, 20 Feb 2013 02:16:06 +0000 (13:16 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:41 +0000 (16:53 +1100)
commit373397bfcb95dcfd6b60b10715da6a8d562d6618
tree57b17facea3f6181e710fa8a01df193516316c37
parentec4e24ef344a91411adb41a0ee832b113ba84388
nfs: idr_destroy() no longer needs idr_remove_all()

idr_destroy() can destroy idr by itself and idr_remove_all() is being
deprecated.  Drop reference to idr_remove_all().  Note that the code
wasn't completely correct before because idr_remove() on all entries
doesn't necessarily release all idr_layers which could lead to memory
leak.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/nfs/client.c