• Home
  • Raw
  • Download

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 list_entry(p->mnt_slave_list.next, struct mount, mnt_slave); in first_slave()
27 static inline struct mount *last_slave(struct mount *p) in last_slave()
29 return list_entry(p->mnt_slave_list.prev, struct mount, mnt_slave); in last_slave()
32 static inline struct mount *next_slave(struct mount *p) in next_slave()
34 return list_entry(p->mnt_slave.next, struct mount, mnt_slave); in next_slave()
37 static struct mount *get_peer_under_root(struct mount *mnt, in get_peer_under_root()
41 struct mount *m = mnt; in get_peer_under_root()
60 int get_dominating_id(struct mount *mnt, const struct path *root) in get_dominating_id()
62 struct mount *m; in get_dominating_id()
65 struct mount *d = get_peer_under_root(m, mnt->mnt_ns, root); in get_dominating_id()
73 static int do_make_slave(struct mount *mnt) in do_make_slave()
75 struct mount *peer_mnt = mnt, *master = mnt->mnt_master; in do_make_slave()
76 struct mount *slave_mnt; in do_make_slave()
111 struct mount, mnt_slave); in do_make_slave()
124 void change_mnt_propagation(struct mount *mnt, int type) in change_mnt_propagation()
151 static struct mount *propagation_next(struct mount *m, in propagation_next()
152 struct mount *origin) in propagation_next()
159 struct mount *master = m->mnt_master; in propagation_next()
162 struct mount *next = next_peer(m); in propagation_next()
172 static struct mount *skip_propagation_subtree(struct mount *m, in skip_propagation_subtree()
173 struct mount *origin) in skip_propagation_subtree()
185 static struct mount *next_group(struct mount *m, struct mount *origin) in next_group()
189 struct mount *next; in next_group()
202 struct mount *master = m->mnt_master; in next_group()
219 static struct mount *last_dest, *first_source, *last_source, *dest_master;
223 static inline bool peers(struct mount *m1, struct mount *m2) in peers()
228 static int propagate_one(struct mount *m) in propagate_one()
230 struct mount *child; in propagate_one()
241 struct mount *n, *p; in propagate_one()
249 struct mount *parent = last_source->mnt_parent; in propagate_one()
295 int propagate_mnt(struct mount *dest_mnt, struct mountpoint *dest_mp, in propagate_mnt()
296 struct mount *source_mnt, struct hlist_head *tree_list) in propagate_mnt()
298 struct mount *m, *n; in propagate_mnt()
344 static struct mount *find_topper(struct mount *mnt) in find_topper()
347 struct mount *child; in find_topper()
352 child = list_first_entry(&mnt->mnt_mounts, struct mount, mnt_child); in find_topper()
362 static inline int do_refcount_check(struct mount *mnt, int count) in do_refcount_check()
377 int propagate_mount_busy(struct mount *mnt, int refcnt) in propagate_mount_busy()
379 struct mount *m, *child, *topper; in propagate_mount_busy()
380 struct mount *parent = mnt->mnt_parent; in propagate_mount_busy()
420 void propagate_mount_unlock(struct mount *mnt) in propagate_mount_unlock()
422 struct mount *parent = mnt->mnt_parent; in propagate_mount_unlock()
423 struct mount *m, *child; in propagate_mount_unlock()
435 static void umount_one(struct mount *mnt, struct list_head *to_umount) in umount_one()
448 static bool __propagate_umount(struct mount *mnt, in __propagate_umount()
453 struct mount *child; in __propagate_umount()
492 struct mount *mnt, *child, *tmp; in umount_list()
508 struct mount *mnt, *parent; in restore_mounts()
511 mnt = list_first_entry(to_restore, struct mount, mnt_umounting); in restore_mounts()
530 struct mount *mnt = in cleanup_umount_visitations()
531 list_first_entry(visited, struct mount, mnt_umounting); in cleanup_umount_visitations()
545 struct mount *mnt; in propagate_umount()
552 struct mount *parent = mnt->mnt_parent; in propagate_umount()
553 struct mount *m; in propagate_umount()
567 struct mount *child = __lookup_mnt(&m->mnt, in propagate_umount()
612 void propagate_remount(struct mount *mnt) in propagate_remount()
614 struct mount *parent = mnt->mnt_parent; in propagate_remount()
615 struct mount *p = mnt, *m; in propagate_remount()