diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs_pin.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/fs_pin.c b/fs/fs_pin.c index 9368236ca100..f173313760b8 100644 --- a/fs/fs_pin.c +++ b/fs/fs_pin.c | |||
@@ -4,19 +4,8 @@ | |||
4 | #include "internal.h" | 4 | #include "internal.h" |
5 | #include "mount.h" | 5 | #include "mount.h" |
6 | 6 | ||
7 | static void pin_free_rcu(struct rcu_head *head) | ||
8 | { | ||
9 | kfree(container_of(head, struct fs_pin, rcu)); | ||
10 | } | ||
11 | |||
12 | static DEFINE_SPINLOCK(pin_lock); | 7 | static DEFINE_SPINLOCK(pin_lock); |
13 | 8 | ||
14 | void pin_put(struct fs_pin *p) | ||
15 | { | ||
16 | if (atomic_long_dec_and_test(&p->count)) | ||
17 | call_rcu(&p->rcu, pin_free_rcu); | ||
18 | } | ||
19 | |||
20 | void pin_remove(struct fs_pin *pin) | 9 | void pin_remove(struct fs_pin *pin) |
21 | { | 10 | { |
22 | spin_lock(&pin_lock); | 11 | spin_lock(&pin_lock); |