Lines Matching refs:mount

17 static inline struct mount *next_peer(struct mount *p)  in next_peer()
19 return list_entry(p->mnt_share.next, struct mount, mnt_share); in next_peer()
22 static inline struct mount *first_slave(struct mount *p) in first_slave()
24 return hlist_entry(p->mnt_slave_list.first, struct mount, mnt_slave); in first_slave()
27 static inline struct mount *next_slave(struct mount *p) in next_slave()
29 return hlist_entry(p->mnt_slave.next, struct mount, mnt_slave); in next_slave()
33 static struct mount *get_peer_under_root(struct mount *mnt, in get_peer_under_root()
37 struct mount *m = mnt; in get_peer_under_root()
56 int get_dominating_id(struct mount *mnt, const struct path *root) in get_dominating_id()
58 struct mount *m; in get_dominating_id()
61 struct mount *d = get_peer_under_root(m, mnt->mnt_ns, root); in get_dominating_id()
69 static inline bool will_be_unmounted(struct mount *m) in will_be_unmounted()
74 static void transfer_propagation(struct mount *mnt, struct mount *to) in transfer_propagation()
77 struct mount *m; in transfer_propagation()
93 void change_mnt_propagation(struct mount *mnt, int type) in change_mnt_propagation()
95 struct mount *m = mnt->mnt_master; in change_mnt_propagation()
126 static struct mount *trace_transfers(struct mount *m) in trace_transfers()
129 struct mount *next = next_peer(m); in trace_transfers()
152 static void set_destinations(struct mount *m, struct mount *master) in set_destinations()
154 struct mount *next; in set_destinations()
164 struct mount *m; in bulk_make_private()
177 static struct mount *__propagation_next(struct mount *m, in __propagation_next()
178 struct mount *origin) in __propagation_next()
181 struct mount *master = m->mnt_master; in __propagation_next()
184 struct mount *next = next_peer(m); in __propagation_next()
204 static struct mount *propagation_next(struct mount *m, in propagation_next()
205 struct mount *origin) in propagation_next()
214 static struct mount *skip_propagation_subtree(struct mount *m, in skip_propagation_subtree()
215 struct mount *origin) in skip_propagation_subtree()
220 struct mount *p = __propagation_next(m, origin); in skip_propagation_subtree()
228 static struct mount *next_group(struct mount *m, struct mount *origin) in next_group()
232 struct mount *next; in next_group()
245 struct mount *master = m->mnt_master; in next_group()
260 static bool need_secondary(struct mount *m, struct mountpoint *dest_mp) in need_secondary()
274 static struct mount *find_master(struct mount *m, in find_master()
275 struct mount *last_copy, in find_master()
276 struct mount *original) in find_master()
278 struct mount *p; in find_master()
288 struct mount *parent = last_copy->mnt_parent; in find_master()
311 int propagate_mnt(struct mount *dest_mnt, struct mountpoint *dest_mp, in propagate_mnt()
312 struct mount *source_mnt, struct hlist_head *tree_list) in propagate_mnt()
314 struct mount *m, *n, *copy, *this; in propagate_mnt()
371 static inline int do_refcount_check(struct mount *mnt, int count) in do_refcount_check()
395 bool propagation_would_overmount(const struct mount *from, in propagation_would_overmount()
396 const struct mount *to, in propagation_would_overmount()
405 for (const struct mount *m = to; m; m = m->mnt_master) { in propagation_would_overmount()
423 int propagate_mount_busy(struct mount *mnt, int refcnt) in propagate_mount_busy()
425 struct mount *parent = mnt->mnt_parent; in propagate_mount_busy()
438 for (struct mount *m = propagation_next(parent, parent); m; in propagate_mount_busy()
441 struct mount *child = __lookup_mnt(&m->mnt, mnt->mnt_mountpoint); in propagate_mount_busy()
466 void propagate_mount_unlock(struct mount *mnt) in propagate_mount_unlock()
468 struct mount *parent = mnt->mnt_parent; in propagate_mount_unlock()
469 struct mount *m, *child; in propagate_mount_unlock()
481 static inline bool is_candidate(struct mount *m) in is_candidate()
486 static void umount_one(struct mount *m, struct list_head *to_umount) in umount_one()
494 static void remove_from_candidate_list(struct mount *m) in remove_from_candidate_list()
503 struct mount *m, *p, *q; in gather_candidates()
512 struct mount *child = __lookup_mnt(&q->mnt, in gather_candidates()
542 static void trim_ancestors(struct mount *m) in trim_ancestors()
544 struct mount *p; in trim_ancestors()
565 static void trim_one(struct mount *m, struct list_head *to_umount) in trim_one()
568 struct mount *n; in trim_one()
597 static void handle_locked(struct mount *m, struct list_head *to_umount) in handle_locked()
599 struct mount *cutoff = m, *p; in handle_locked()
631 static void reparent(struct mount *m) in reparent()
633 struct mount *p = m; in reparent()
660 struct mount *m, *p; in propagate_umount()
673 m = list_first_entry(&candidates,struct mount, mnt_list); in propagate_umount()
680 struct mount *over = m->overmount; in propagate_umount()