]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
nfsd: idr_destroy() no longer needs idr_remove_all()
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 20 Feb 2013 02:16:07 +0000 (13:16 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:41 +0000 (16:53 +1100)
idr_destroy() can destroy idr by itself and idr_remove_all() is being
deprecated.  Drop reference to idr_remove_all().

Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/nfsd/nfs4state.c

index 68cfc118a806536511cb3cbc497027183ebe6af1..16d39c6c4fbb56b11c25ac8927b8913b1a928a15 100644 (file)
@@ -1079,7 +1079,6 @@ free_client(struct nfs4_client *clp)
        }
        free_svc_cred(&clp->cl_cred);
        kfree(clp->cl_name.data);
-       idr_remove_all(&clp->cl_stateids);
        idr_destroy(&clp->cl_stateids);
        kfree(clp);
 }