1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/wait.h>
5 wait_queue_head_t wait;
7 struct hlist_node s_list;
8 struct hlist_node m_list;
9 void (*kill)(struct fs_pin *);
14 static inline void init_fs_pin(struct fs_pin *p, void (*kill)(struct fs_pin *))
16 init_waitqueue_head(&p->wait);
17 INIT_HLIST_NODE(&p->s_list);
18 INIT_HLIST_NODE(&p->m_list);
22 void pin_remove(struct fs_pin *);
23 void pin_insert(struct fs_pin *, struct vfsmount *);
24 void pin_kill(struct fs_pin *);