]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - include/linux/fs_pin.h
seccomp: Move speculation migitation control to arch code
[mirror_ubuntu-artful-kernel.git] / include / linux / fs_pin.h
1 #include <linux/wait.h>
2
3 struct fs_pin {
4 wait_queue_head_t wait;
5 int done;
6 struct hlist_node s_list;
7 struct hlist_node m_list;
8 void (*kill)(struct fs_pin *);
9 };
10
11 struct vfsmount;
12
13 static inline void init_fs_pin(struct fs_pin *p, void (*kill)(struct fs_pin *))
14 {
15 init_waitqueue_head(&p->wait);
16 INIT_HLIST_NODE(&p->s_list);
17 INIT_HLIST_NODE(&p->m_list);
18 p->kill = kill;
19 }
20
21 void pin_remove(struct fs_pin *);
22 void pin_insert_group(struct fs_pin *, struct vfsmount *, struct hlist_head *);
23 void pin_insert(struct fs_pin *, struct vfsmount *);
24 void pin_kill(struct fs_pin *);