Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252787
b: refs/heads/master
c: 26f04dd
h: refs/heads/master
i:
  252785: 0f7ae71
  252783: dff1232
v: v3
  • Loading branch information
Lai Jiangshan authored and Trond Myklebust committed May 27, 2011
1 parent 2dc13ca commit 3c2b654
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4b8ee2b82e8b0b6e17ee33feb74fcdb5c6d8dbdd
refs/heads/master: 26f04dde681c6a48b2bacfc5fe01fef204419b0c
14 changes: 1 addition & 13 deletions trunk/fs/nfs/delegation.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 3c2b654

Please sign in to comment.