summaryrefslogtreecommitdiffstats
path: root/fs/fs_pin.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-05-21 18:22:52 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-08-07 14:40:09 -0400
commit8fa1f1c2bd86007beb4a4845e6087ac4a704dc80 (patch)
tree9bfd55957c49422697debb7651b669891cb1b5f2 /fs/fs_pin.c
parentefb170c22867cdc6f770de441bdefecec6712199 (diff)
downloadlinux-8fa1f1c2bd86007beb4a4845e6087ac4a704dc80.tar.gz
linux-8fa1f1c2bd86007beb4a4845e6087ac4a704dc80.tar.bz2
linux-8fa1f1c2bd86007beb4a4845e6087ac4a704dc80.zip
make fs/{namespace,super}.c forget about acct.h
These externs belong in fs/internal.h. Rename (they are not acct-specific anymore) and move them over there. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/fs_pin.c')
-rw-r--r--fs/fs_pin.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/fs_pin.c b/fs/fs_pin.c
index f3ce0b874a44..9368236ca100 100644
--- a/fs/fs_pin.c
+++ b/fs/fs_pin.c
@@ -1,6 +1,7 @@
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/fs_pin.h>
+#include "internal.h"
#include "mount.h"
static void pin_free_rcu(struct rcu_head *head)
@@ -32,13 +33,13 @@ void pin_insert(struct fs_pin *pin, struct vfsmount *m)
spin_unlock(&pin_lock);
}
-void acct_auto_close_mnt(struct hlist_head *list)
+void mnt_pin_kill(struct mount *m)
{
while (1) {
struct hlist_node *p;
struct fs_pin *pin;
rcu_read_lock();
- p = ACCESS_ONCE(list->first);
+ p = ACCESS_ONCE(m->mnt_pins.first);
if (!p) {
rcu_read_unlock();
break;
@@ -54,13 +55,13 @@ void acct_auto_close_mnt(struct hlist_head *list)
}
}
-void acct_auto_close(struct hlist_head *list)
+void sb_pin_kill(struct super_block *sb)
{
while (1) {
struct hlist_node *p;
struct fs_pin *pin;
rcu_read_lock();
- p = ACCESS_ONCE(list->first);
+ p = ACCESS_ONCE(sb->s_pins.first);
if (!p) {
rcu_read_unlock();
break;