Lines Matching defs:mnt
90 static inline struct hlist_head *m_hash(struct vfsmount *mnt, struct dentry *dentry) in m_hash()
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 int mnt_get_count(struct mount *mnt) in mnt_get_count()
177 struct mount *mnt = kmem_cache_zalloc(mnt_cache, GFP_KERNEL); in alloc_vfsmnt() local
246 bool __mnt_is_readonly(struct vfsmount *mnt) in __mnt_is_readonly()
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()
286 static int mnt_is_readonly(struct vfsmount *mnt) in mnt_is_readonly()
313 struct mount *mnt = real_mount(m); in __mnt_want_write() local
374 int mnt_clone_write(struct vfsmount *mnt) in mnt_clone_write()
428 void __mnt_drop_write(struct vfsmount *mnt) in __mnt_drop_write()
443 void mnt_drop_write(struct vfsmount *mnt) in mnt_drop_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() local
548 static void free_vfsmnt(struct mount *mnt) in free_vfsmnt()
565 struct mount *mnt; in __legitimize_mnt() local
608 struct mount *__lookup_mnt(struct vfsmount *mnt, struct dentry *dentry) in __lookup_mnt()
661 static inline bool mnt_is_cursor(struct mount *mnt) in mnt_is_cursor()
684 struct mount *mnt; in __is_local_mountpoint() local
790 static inline int check_mnt(struct mount *mnt) in check_mnt()
820 static struct mountpoint *unhash_mnt(struct mount *mnt) in unhash_mnt()
836 static void umount_mnt(struct mount *mnt) in umount_mnt()
844 void mnt_set_mountpoint(struct mount *mnt, in mnt_set_mountpoint()
856 static void __attach_mnt(struct mount *mnt, struct mount *parent) in __attach_mnt()
866 static void attach_mnt(struct mount *mnt, in attach_mnt()
874 void mnt_change_mountpoint(struct mount *parent, struct mountpoint *mp, struct mount *mnt) in mnt_change_mountpoint()
892 static void commit_tree(struct mount *mnt) in commit_tree()
951 struct mount *mnt; in vfs_create_mount() local
992 struct vfsmount *mnt; in vfs_kern_mount() local
1036 struct mount *mnt; in clone_mnt() local
1098 static void cleanup_mnt(struct mount *mnt) in cleanup_mnt()
1139 static void mntput_no_expire(struct mount *mnt) in mntput_no_expire()
1207 void mntput(struct vfsmount *mnt) in mntput()
1219 struct vfsmount *mntget(struct vfsmount *mnt) in mntget()
1270 struct mount *mnt, *ret = NULL; in mnt_list_next() local
1308 struct mount *mnt = v; in m_next() local
1317 struct mount *mnt = v; in m_stop() local
1362 struct mount *mnt = real_mount(m); in may_umount_tree() local
1397 int may_umount(struct vfsmount *mnt) in may_umount()
1447 static bool disconnect_mount(struct mount *mnt, enum umount_tree_flags how) in disconnect_mount()
1480 static void umount_tree(struct mount *mnt, enum umount_tree_flags how) in umount_tree()
1559 static int do_umount(struct mount *mnt, int flags) in do_umount()
1668 struct mount *mnt; in __detach_mounts() local
1718 struct mount *mnt = real_mount(path->mnt); in can_umount() local
1736 struct mount *mnt = real_mount(path->mnt); in path_umount() local
1796 struct ns_common *from_mnt_ns(struct mnt_namespace *mnt) in from_mnt_ns()
1814 struct mount *copy_tree(struct mount *mnt, struct dentry *dentry, in copy_tree()
1899 void dissolve_on_fput(struct vfsmount *mnt) in dissolve_on_fput()
1917 void drop_collected_mounts(struct vfsmount *mnt) in drop_collected_mounts()
1926 static bool has_locked_children(struct mount *mnt, struct dentry *dentry) in has_locked_children()
1984 struct mount *mnt; in iterate_mounts() local
1996 static void lock_mnt_tree(struct mount *mnt) in lock_mnt_tree()
2023 static void cleanup_group_ids(struct mount *mnt, struct mount *end) in cleanup_group_ids()
2033 static int invent_group_ids(struct mount *mnt, bool recurse) in invent_group_ids()
2050 int count_mounts(struct mnt_namespace *ns, struct mount *mnt) in count_mounts()
2226 struct vfsmount *mnt; in lock_mount() local
2265 static int graft_tree(struct mount *mnt, struct mount *p, struct mountpoint *mp) in graft_tree()
2300 struct mount *mnt = real_mount(path->mnt); in do_change_type() local
2331 struct mount *mnt = ERR_PTR(-EINVAL), *old = real_mount(old_path->mnt); in __do_loopback() local
2360 struct mount *mnt = NULL, *parent; in do_loopback() local
2406 struct mount *mnt, *p; in open_detached_copy() local
2498 static bool can_change_locked_flags(struct mount *mnt, unsigned int mnt_flags) in can_change_locked_flags()
2525 static int change_mount_ro_state(struct mount *mnt, unsigned int mnt_flags) in change_mount_ro_state()
2542 static void set_mount_attributes(struct mount *mnt, unsigned int mnt_flags) in set_mount_attributes()
2551 static void mnt_warn_timestamp_expiry(struct path *mountpoint, struct vfsmount *mnt) in mnt_warn_timestamp_expiry()
2581 struct mount *mnt = real_mount(path->mnt); in do_reconfigure_mnt() local
2614 struct mount *mnt = real_mount(path->mnt); in do_remount() local
2654 static inline int tree_contains_unbindable(struct mount *mnt) in tree_contains_unbindable()
2825 struct vfsmount *mnt; in do_new_mount_fc() local
2922 struct mount *mnt; in finish_automount() local
2993 void mnt_set_expiry(struct vfsmount *mnt, struct list_head *expiry_list) in mnt_set_expiry()
3010 struct mount *mnt, *next; in mark_mounts_for_expiry() local
3059 struct mount *mnt = list_entry(tmp, struct mount, mnt_child); in select_submounts() local
3094 static void shrink_submounts(struct mount *mnt) in shrink_submounts()
3403 struct mount *mnt = real_mount(m); in mount_subtree() local
3483 struct mount *mnt; in SYSCALL_DEFINE3() local
3675 bool is_path_reachable(struct mount *mnt, struct dentry *dentry, in is_path_reachable()
3821 struct vfsmount *mnt; in init_mount_tree() local
3894 struct vfsmount *mnt; in kern_mount() local
3907 void kern_unmount(struct vfsmount *mnt) in kern_unmount()
3918 void kern_unmount_array(struct vfsmount *mnt[], unsigned int num) in kern_unmount_array()
3931 bool our_mnt(struct vfsmount *mnt) in our_mnt()
3965 struct mount *mnt; in mnt_already_visible() local
4052 bool mnt_may_suid(struct vfsmount *mnt) in mnt_may_suid()