]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - fs/fs_pin.c
kill pin_put()
[thirdparty/linux.git] / fs / fs_pin.c
index 9368236ca100bc311fe721c15eca9e3bfdcb2f0f..f173313760b8e61e06fb3466cb48d1f436f20371 100644 (file)
@@ -4,19 +4,8 @@
 #include "internal.h"
 #include "mount.h"
 
-static void pin_free_rcu(struct rcu_head *head)
-{
-       kfree(container_of(head, struct fs_pin, rcu));
-}
-
 static DEFINE_SPINLOCK(pin_lock);
 
-void pin_put(struct fs_pin *p)
-{
-       if (atomic_long_dec_and_test(&p->count))
-               call_rcu(&p->rcu, pin_free_rcu);
-}
-
 void pin_remove(struct fs_pin *pin)
 {
        spin_lock(&pin_lock);