Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257001
b: refs/heads/master
c: 3b097c4
h: refs/heads/master
i:
  256999: 4c3e610
v: v3
  • Loading branch information
Lai Jiangshan authored and Paul E. McKenney committed Jul 20, 2011
1 parent 3a125ad commit 4a3c692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: 6034f7e603cd2dae8ed9a1d8d2ccfeb6b5c48d73
refs/heads/master: 3b097c46964b07479855b01056c61540b8cadd50
8 changes: 1 addition & 7 deletions trunk/kernel/audit_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,10 @@ static inline void get_tree(struct audit_tree *tree)
atomic_inc(&tree->count);
}

static void __put_tree(struct rcu_head *rcu)
{
struct audit_tree *tree = container_of(rcu, struct audit_tree, head);
kfree(tree);
}

static inline void put_tree(struct audit_tree *tree)
{
if (atomic_dec_and_test(&tree->count))
call_rcu(&tree->head, __put_tree);
kfree_rcu(tree, head);
}

/* to avoid bringing the entire thing in audit.h */
Expand Down

0 comments on commit 4a3c692

Please sign in to comment.