Lines Matching refs:mount

105 static int mnt_alloc_id(struct mount *mnt)  in mnt_alloc_id()
115 static void mnt_free_id(struct mount *mnt) in mnt_free_id()
123 static int mnt_alloc_group_id(struct mount *mnt) in mnt_alloc_group_id()
136 void mnt_release_group_id(struct mount *mnt) in mnt_release_group_id()
145 static inline void mnt_add_count(struct mount *mnt, int n) in mnt_add_count()
159 unsigned int mnt_get_count(struct mount *mnt) in mnt_get_count()
175 static struct mount *alloc_vfsmnt(const char *name) in alloc_vfsmnt()
177 struct mount *mnt = kmem_cache_zalloc(mnt_cache, GFP_KERNEL); in alloc_vfsmnt()
252 static inline void mnt_inc_writers(struct mount *mnt) in mnt_inc_writers()
261 static inline void mnt_dec_writers(struct mount *mnt) in mnt_dec_writers()
270 static unsigned int mnt_get_writers(struct mount *mnt) in mnt_get_writers()
313 struct mount *mnt = real_mount(m); in __mnt_want_write()
462 static int mnt_make_readonly(struct mount *mnt) in mnt_make_readonly()
504 static int __mnt_unmake_readonly(struct mount *mnt) in __mnt_unmake_readonly()
514 struct mount *mnt; in sb_prepare_remount_readonly()
548 static void free_vfsmnt(struct mount *mnt) in free_vfsmnt()
559 free_vfsmnt(container_of(head, struct mount, mnt_rcu)); in delayed_free_vfsmnt()
565 struct mount *mnt; in __legitimize_mnt()
608 struct mount *__lookup_mnt(struct vfsmount *mnt, struct dentry *dentry) in __lookup_mnt()
611 struct mount *p; in __lookup_mnt()
637 struct mount *child_mnt; in lookup_mnt()
669 struct mount *mnt; in __is_local_mountpoint()
774 static inline int check_mnt(struct mount *mnt) in check_mnt()
804 static struct mountpoint *unhash_mnt(struct mount *mnt) in unhash_mnt()
820 static void umount_mnt(struct mount *mnt) in umount_mnt()
828 void mnt_set_mountpoint(struct mount *mnt, in mnt_set_mountpoint()
830 struct mount *child_mnt) in mnt_set_mountpoint()
840 static void __attach_mnt(struct mount *mnt, struct mount *parent) in __attach_mnt()
850 static void attach_mnt(struct mount *mnt, in attach_mnt()
851 struct mount *parent, in attach_mnt()
858 void mnt_change_mountpoint(struct mount *parent, struct mountpoint *mp, struct mount *mnt) in mnt_change_mountpoint()
861 struct mount *old_parent = mnt->mnt_parent; in mnt_change_mountpoint()
876 static void commit_tree(struct mount *mnt) in commit_tree()
878 struct mount *parent = mnt->mnt_parent; in commit_tree()
879 struct mount *m; in commit_tree()
898 static struct mount *next_mnt(struct mount *p, struct mount *root) in next_mnt()
911 return list_entry(next, struct mount, mnt_child); in next_mnt()
914 static struct mount *skip_mnt_tree(struct mount *p) in skip_mnt_tree()
918 p = list_entry(prev, struct mount, mnt_child); in skip_mnt_tree()
935 struct mount *mnt; in vfs_create_mount()
1016 static struct mount *clone_mnt(struct mount *old, struct dentry *root, in clone_mnt()
1020 struct mount *mnt; in clone_mnt()
1082 static void cleanup_mnt(struct mount *mnt) in cleanup_mnt()
1085 struct mount *m; in cleanup_mnt()
1109 cleanup_mnt(container_of(head, struct mount, mnt_rcu)); in __cleanup_mnt()
1116 struct mount *m, *t; in delayed_mntput()
1123 static void mntput_no_expire(struct mount *mnt) in mntput_no_expire()
1165 struct mount *p, *tmp; in mntput_no_expire()
1191 struct mount *m = real_mount(mnt); in mntput()
1239 struct mount *p; in mnt_clone_internal()
1287 struct mount *r = list_entry(v, struct mount, mnt_list); in m_show()
1309 struct mount *mnt = real_mount(m); in may_umount_tree()
1312 struct mount *p; in may_umount_tree()
1362 struct mount *m; in namespace_unlock()
1394 static bool disconnect_mount(struct mount *mnt, enum umount_tree_flags how) in disconnect_mount()
1427 static void umount_tree(struct mount *mnt, enum umount_tree_flags how) in umount_tree()
1430 struct mount *p; in umount_tree()
1453 p = list_first_entry(&tmp_list, struct mount, mnt_list); in umount_tree()
1481 static void shrink_submounts(struct mount *mnt);
1506 static int do_umount(struct mount *mnt, int flags) in do_umount()
1615 struct mount *mnt; in __detach_mounts()
1625 mnt = hlist_entry(mp->m_list.first, struct mount, mnt_mp_list); in __detach_mounts()
1670 struct mount *mnt; in ksys_umount()
1749 struct mount *copy_tree(struct mount *mnt, struct dentry *dentry, in copy_tree()
1752 struct mount *res, *p, *q, *r, *parent; in copy_tree()
1768 struct mount *s; in copy_tree()
1818 struct mount *tree; in collect_mounts()
1872 struct mount *old_mnt = real_mount(path->mnt); in clone_private_mount()
1873 struct mount *new_mnt; in clone_private_mount()
1889 struct mount *mnt; in iterate_mounts()
1901 static void lock_mnt_tree(struct mount *mnt) in lock_mnt_tree()
1903 struct mount *p; in lock_mnt_tree()
1928 static void cleanup_group_ids(struct mount *mnt, struct mount *end) in cleanup_group_ids()
1930 struct mount *p; in cleanup_group_ids()
1938 static int invent_group_ids(struct mount *mnt, bool recurse) in invent_group_ids()
1940 struct mount *p; in invent_group_ids()
1955 int count_mounts(struct mnt_namespace *ns, struct mount *mnt) in count_mounts()
1959 struct mount *p; in count_mounts()
2040 static int attach_recursive_mnt(struct mount *source_mnt, in attach_recursive_mnt()
2041 struct mount *dest_mnt, in attach_recursive_mnt()
2049 struct mount *child, *p; in attach_recursive_mnt()
2094 struct mount *q; in attach_recursive_mnt()
2113 child = hlist_entry(tree_list.first, struct mount, mnt_hash); in attach_recursive_mnt()
2170 static int graft_tree(struct mount *mnt, struct mount *p, struct mountpoint *mp) in graft_tree()
2204 struct mount *m; in do_change_type()
2205 struct mount *mnt = real_mount(path->mnt); in do_change_type()
2234 static bool has_locked_children(struct mount *mnt, struct dentry *dentry) in has_locked_children()
2236 struct mount *child; in has_locked_children()
2247 static struct mount *__do_loopback(struct path *old_path, int recurse) in __do_loopback()
2249 struct mount *mnt = ERR_PTR(-EINVAL), *old = real_mount(old_path->mnt); in __do_loopback()
2278 struct mount *mnt = NULL, *parent; in do_loopback()
2324 struct mount *mnt, *p; in open_detached_copy()
2416 static bool can_change_locked_flags(struct mount *mnt, unsigned int mnt_flags) in can_change_locked_flags()
2443 static int change_mount_ro_state(struct mount *mnt, unsigned int mnt_flags) in change_mount_ro_state()
2460 static void set_mount_attributes(struct mount *mnt, unsigned int mnt_flags) in set_mount_attributes()
2499 struct mount *mnt = real_mount(path->mnt); in do_reconfigure_mnt()
2532 struct mount *mnt = real_mount(path->mnt); in do_remount()
2566 static inline int tree_contains_unbindable(struct mount *mnt) in tree_contains_unbindable()
2568 struct mount *p; in tree_contains_unbindable()
2582 static bool check_for_nsfs_mounts(struct mount *subtree) in check_for_nsfs_mounts()
2584 struct mount *p; in check_for_nsfs_mounts()
2601 struct mount *p; in do_move_mount()
2602 struct mount *old; in do_move_mount()
2603 struct mount *parent; in do_move_mount()
2700 static int do_add_mount(struct mount *newmnt, struct path *path, int mnt_flags) in do_add_mount()
2703 struct mount *parent; in do_add_mount()
2832 struct mount *mnt = real_mount(m); in finish_automount()
2882 struct mount *mnt, *next; in mark_mounts_for_expiry()
2904 mnt = list_first_entry(&graveyard, struct mount, mnt_expire); in mark_mounts_for_expiry()
2920 static int select_submounts(struct mount *parent, struct list_head *graveyard) in select_submounts()
2922 struct mount *this_parent = parent; in select_submounts()
2931 struct mount *mnt = list_entry(tmp, struct mount, mnt_child); in select_submounts()
2966 static void shrink_submounts(struct mount *mnt) in shrink_submounts()
2969 struct mount *m; in shrink_submounts()
2974 m = list_first_entry(&graveyard, struct mount, in shrink_submounts()
3217 struct mount *p, *q; in copy_mnt_ns()
3218 struct mount *old; in copy_mnt_ns()
3219 struct mount *new; in copy_mnt_ns()
3293 struct mount *mnt = real_mount(m); in mount_subtree()
3362 SYSCALL_DEFINE5(mount, char __user *, dev_name, char __user *, dir_name, in SYSCALL_DEFINE5() argument
3379 struct mount *mnt; in SYSCALL_DEFINE3()
3571 bool is_path_reachable(struct mount *mnt, struct dentry *dentry, in is_path_reachable()
3620 struct mount *new_mnt, *root_mnt, *old_mnt, *root_parent, *ex_parent; in SYSCALL_DEFINE2()
3718 struct mount *m; in init_mount_tree()
3749 mnt_cache = kmem_cache_create("mnt_cache", sizeof(struct mount), in mnt_init()
3848 struct mount *mnt; in mnt_already_visible()
3853 struct mount *child; in mnt_already_visible()