Lines Matching refs:p
17 static inline struct mount *next_peer(struct mount *p) in next_peer() argument
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() argument
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() argument
29 return hlist_entry(p->mnt_slave.next, struct mount, mnt_slave); in next_slave()
88 struct hlist_node *p = NULL, *n; in transfer_propagation() local
96 p = &m->mnt_slave; in transfer_propagation()
98 if (p) in transfer_propagation()
99 hlist_splice_init(&mnt->mnt_slave_list, p, &to->mnt_slave_list); in transfer_propagation()
182 struct mount *p = __propagation_next(m, origin); in skip_propagation_subtree() local
184 while (p && peers(m, p)) in skip_propagation_subtree()
185 p = __propagation_next(p, origin); in skip_propagation_subtree()
187 return p; in skip_propagation_subtree()
240 struct mount *p; in find_master() local
244 p = m->mnt_master; in find_master()
245 if (!p || IS_MNT_MARKED(p)) in find_master()
247 m = p; in find_master()
251 if (parent->mnt_master == p) { in find_master()
466 struct mount *m, *p, *q; in gather_candidates() local
472 p = m->mnt_parent; in gather_candidates()
473 q = propagation_next(p, p); in gather_candidates()
486 q = skip_propagation_subtree(q, p); in gather_candidates()
493 q = propagation_next(q, p); in gather_candidates()
507 struct mount *p; in trim_ancestors() local
509 for (p = m->mnt_parent; is_candidate(p); m = p, p = p->mnt_parent) { in trim_ancestors()
513 if (m != p->overmount) in trim_ancestors()
514 p->mnt_t_flags &= ~T_UMOUNT_CANDIDATE; in trim_ancestors()
562 struct mount *cutoff = m, *p; in handle_locked() local
568 for (p = m; is_candidate(p); p = p->mnt_parent) { in handle_locked()
569 remove_from_candidate_list(p); in handle_locked()
570 if (!IS_MNT_LOCKED(p)) in handle_locked()
571 cutoff = p->mnt_parent; in handle_locked()
573 if (will_be_unmounted(p)) in handle_locked()
574 cutoff = p; in handle_locked()
596 struct mount *p = m; in reparent() local
600 mp = p->mnt_mp; in reparent()
601 p = p->mnt_parent; in reparent()
602 } while (will_be_unmounted(p)); in reparent()
604 mnt_change_mountpoint(p, mp, m); in reparent()
623 struct mount *m, *p; in propagate_umount() local
631 list_for_each_entry_safe(m, p, &candidates, mnt_list) in propagate_umount()