diff --git a/[refs] b/[refs] index ce365836491c..a055956e08bc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4b8ee2b82e8b0b6e17ee33feb74fcdb5c6d8dbdd +refs/heads/master: 26f04dde681c6a48b2bacfc5fe01fef204419b0c diff --git a/trunk/fs/nfs/delegation.c b/trunk/fs/nfs/delegation.c index bbbc6bf5cb2e..dd25c2aec375 100644 --- a/trunk/fs/nfs/delegation.c +++ b/trunk/fs/nfs/delegation.c @@ -21,25 +21,13 @@ #include "delegation.h" #include "internal.h" -static void nfs_do_free_delegation(struct nfs_delegation *delegation) -{ - kfree(delegation); -} - -static void nfs_free_delegation_callback(struct rcu_head *head) -{ - struct nfs_delegation *delegation = container_of(head, struct nfs_delegation, rcu); - - nfs_do_free_delegation(delegation); -} - static void nfs_free_delegation(struct nfs_delegation *delegation) { if (delegation->cred) { put_rpccred(delegation->cred); delegation->cred = NULL; } - call_rcu(&delegation->rcu, nfs_free_delegation_callback); + kfree_rcu(delegation, rcu); } /**