Lines Matching defs:mnt

261 static inline struct hlist_head *m_hash(struct vfsmount *mnt, struct dentry *dentry)  in m_hash()
276 static int mnt_alloc_id(struct mount *mnt) in mnt_alloc_id()
288 static void mnt_free_id(struct mount *mnt) in mnt_free_id()
296 static int mnt_alloc_group_id(struct mount *mnt) in mnt_alloc_group_id()
309 void mnt_release_group_id(struct mount *mnt) in mnt_release_group_id()
318 static inline void mnt_add_count(struct mount *mnt, int n) in mnt_add_count()
332 int mnt_get_count(struct mount *mnt) in mnt_get_count()
350 struct mount *mnt = kmem_cache_zalloc(mnt_cache, GFP_KERNEL); in alloc_vfsmnt() local
422 bool __mnt_is_readonly(struct vfsmount *mnt) in __mnt_is_readonly()
428 static inline void mnt_inc_writers(struct mount *mnt) in mnt_inc_writers()
437 static inline void mnt_dec_writers(struct mount *mnt) in mnt_dec_writers()
446 static unsigned int mnt_get_writers(struct mount *mnt) in mnt_get_writers()
462 static int mnt_is_readonly(struct vfsmount *mnt) in mnt_is_readonly()
496 struct mount *mnt = real_mount(m); in mnt_get_write_access() local
616 void mnt_put_write_access(struct vfsmount *mnt) in mnt_put_write_access()
632 void mnt_drop_write(struct vfsmount *mnt) in mnt_drop_write()
670 static inline int mnt_hold_writers(struct mount *mnt) in mnt_hold_writers()
713 static inline void mnt_unhold_writers(struct mount *mnt) in mnt_unhold_writers()
723 static int mnt_make_readonly(struct mount *mnt) in mnt_make_readonly()
736 struct mount *mnt; in sb_prepare_remount_readonly() local
765 static void free_vfsmnt(struct mount *mnt) in free_vfsmnt()
783 struct mount *mnt; in __legitimize_mnt() local
838 struct mount *__lookup_mnt(struct vfsmount *mnt, struct dentry *dentry) in __lookup_mnt()
899 struct mount *mnt, *n; in __is_local_mountpoint() local
1001 static inline int check_mnt(struct mount *mnt) in check_mnt()
1006 static inline bool check_anonymous_mnt(struct mount *mnt) in check_anonymous_mnt()
1042 static struct mountpoint *unhash_mnt(struct mount *mnt) in unhash_mnt()
1058 static void umount_mnt(struct mount *mnt) in umount_mnt()
1066 void mnt_set_mountpoint(struct mount *mnt, in mnt_set_mountpoint()
1105 static void __attach_mnt(struct mount *mnt, struct mount *parent) in __attach_mnt()
1134 static void attach_mnt(struct mount *mnt, struct mount *parent, in attach_mnt()
1150 void mnt_change_mountpoint(struct mount *parent, struct mountpoint *mp, struct mount *mnt) in mnt_change_mountpoint()
1170 static void mnt_add_to_ns(struct mnt_namespace *ns, struct mount *mnt) in mnt_add_to_ns()
1202 static void commit_tree(struct mount *mnt) in commit_tree()
1262 struct mount *mnt; in vfs_create_mount() local
1303 struct vfsmount *mnt; in vfs_kern_mount() local
1347 struct mount *mnt; in clone_mnt() local
1411 static void cleanup_mnt(struct mount *mnt) in cleanup_mnt()
1452 static void mntput_no_expire(struct mount *mnt) in mntput_no_expire()
1520 void mntput(struct vfsmount *mnt) in mntput()
1532 struct vfsmount *mntget(struct vfsmount *mnt) in mntget()
1545 void mnt_make_shortterm(struct vfsmount *mnt) in mnt_make_shortterm()
1653 struct mount *next = NULL, *mnt = v; in m_next() local
1695 struct mount *mnt = real_mount(m); in may_umount_tree() local
1730 int may_umount(struct vfsmount *mnt) in may_umount()
1837 static bool disconnect_mount(struct mount *mnt, enum umount_tree_flags how) in disconnect_mount()
1870 static void umount_tree(struct mount *mnt, enum umount_tree_flags how) in umount_tree()
1965 static int do_umount(struct mount *mnt, int flags) in do_umount()
2075 struct mount *mnt; in __detach_mounts() local
2117 struct mount *mnt = real_mount(path->mnt); in can_umount() local
2136 struct mount *mnt = real_mount(path->mnt); in path_umount() local
2197 struct ns_common *from_mnt_ns(struct mnt_namespace *mnt) in from_mnt_ns()
2375 void dissolve_on_fput(struct vfsmount *mnt) in dissolve_on_fput()
2418 void drop_collected_mounts(struct vfsmount *mnt) in drop_collected_mounts()
2427 bool has_locked_children(struct mount *mnt, struct dentry *dentry) in has_locked_children()
2517 struct mount *mnt; in iterate_mounts() local
2529 static void lock_mnt_tree(struct mount *mnt) in lock_mnt_tree()
2556 static void cleanup_group_ids(struct mount *mnt, struct mount *end) in cleanup_group_ids()
2566 static int invent_group_ids(struct mount *mnt, bool recurse) in invent_group_ids()
2583 int count_mounts(struct mnt_namespace *ns, struct mount *mnt) in count_mounts()
2823 struct vfsmount *mnt = path->mnt; in do_lock_mount() local
2899 static int graft_tree(struct mount *mnt, struct mount *p, struct mountpoint *mp) in graft_tree()
2934 struct mount *mnt = real_mount(path->mnt); in do_change_type() local
3008 struct mount *mnt = real_mount(path->mnt); in may_copy_tree() local
3030 struct mount *mnt = ERR_PTR(-EINVAL), *old = real_mount(old_path->mnt); in __do_loopback() local
3059 struct mount *mnt = NULL, *parent; in do_loopback() local
3105 struct mount *mnt, *p; in open_detached_copy() local
3214 static bool can_change_locked_flags(struct mount *mnt, unsigned int mnt_flags) in can_change_locked_flags()
3241 static int change_mount_ro_state(struct mount *mnt, unsigned int mnt_flags) in change_mount_ro_state()
3255 static void set_mount_attributes(struct mount *mnt, unsigned int mnt_flags) in set_mount_attributes()
3262 static void mnt_warn_timestamp_expiry(struct path *mountpoint, struct vfsmount *mnt) in mnt_warn_timestamp_expiry()
3299 struct mount *mnt = real_mount(path->mnt); in do_reconfigure_mnt() local
3338 struct mount *mnt = real_mount(path->mnt); in do_remount() local
3381 static inline int tree_contains_unbindable(struct mount *mnt) in tree_contains_unbindable()
3599 static inline bool may_use_mount(struct mount *mnt) in may_use_mount()
3796 struct vfsmount *mnt; in do_new_mount_fc() local
3893 struct mount *mnt; in finish_automount() local
3961 void mnt_set_expiry(struct vfsmount *mnt, struct list_head *expiry_list) in mnt_set_expiry()
3978 struct mount *mnt, *next; in mark_mounts_for_expiry() local
4027 struct mount *mnt = list_entry(tmp, struct mount, mnt_child); in select_submounts() local
4062 static void shrink_submounts(struct mount *mnt) in shrink_submounts()
4375 struct mount *mnt = real_mount(m); in mount_subtree() local
4484 struct mount *mnt; in SYSCALL_DEFINE3() local
4693 bool is_path_reachable(struct mount *mnt, struct dentry *dentry, in is_path_reachable()
4839 static unsigned int recalc_flags(struct mount_kattr *kattr, struct mount *mnt) in recalc_flags()
4851 static int can_idmap_mount(const struct mount_kattr *kattr, struct mount *mnt) in can_idmap_mount()
4902 const struct mount *mnt) in mnt_allow_writers()
4909 static int mount_setattr_prepare(struct mount_kattr *kattr, struct mount *mnt) in mount_setattr_prepare()
4958 static void do_idmap_mount(const struct mount_kattr *kattr, struct mount *mnt) in do_idmap_mount()
4972 static void mount_setattr_commit(struct mount_kattr *kattr, struct mount *mnt) in mount_setattr_commit()
4997 struct mount *mnt = real_mount(path->mnt); in do_mount_setattr() local
5323 struct mount *mnt = mnt_find_id_at(ns, id); in lookup_mnt_in_ns() local
5334 struct vfsmount *mnt; member
5344 static u64 mnt_to_attr_flags(struct vfsmount *mnt) in mnt_to_attr_flags()
5450 struct vfsmount *mnt = s->mnt; in statmount_mnt_point() local
5508 struct vfsmount *mnt = s->mnt; in statmount_mnt_opts() local
5568 struct vfsmount *mnt = s->mnt; in statmount_opt_array() local
5590 struct vfsmount *mnt = s->mnt; in statmount_opt_sec_array() local
6174 struct vfsmount *mnt; in init_mount_tree() local
6248 struct vfsmount *mnt; in kern_mount() local
6261 void kern_unmount(struct vfsmount *mnt) in kern_unmount()
6272 void kern_unmount_array(struct vfsmount *mnt[], unsigned int num) in kern_unmount_array()
6284 bool our_mnt(struct vfsmount *mnt) in our_mnt()
6318 struct mount *mnt, *n; in mnt_already_visible() local
6400 bool mnt_may_suid(struct vfsmount *mnt) in mnt_may_suid()