arch/mips/include/asm/sgiarcs.h
229
LONG mount;
fs/d_path.c
104
static int __prepend_path(const struct dentry *dentry, const struct mount *mnt,
fs/d_path.c
111
struct mount *m = READ_ONCE(mnt->mnt_parent);
fs/f2fs/f2fs.h
3958
int f2fs_build_free_nids(struct f2fs_sb_info *sbi, bool sync, bool mount);
fs/f2fs/node.c
2577
bool sync, bool mount)
fs/f2fs/node.c
2596
if (!mount) {
fs/f2fs/node.c
2659
int f2fs_build_free_nids(struct f2fs_sb_info *sbi, bool sync, bool mount)
fs/f2fs/node.c
2664
ret = __f2fs_build_free_nids(sbi, sync, mount);
fs/fs_pin.c
71
void mnt_pin_kill(struct mount *m)
fs/internal.h
14
struct mount;
fs/internal.h
247
extern void mnt_pin_kill(struct mount *m);
fs/libfs.c
1097
int simple_pin_fs(struct file_system_type *type, struct vfsmount **mount, int *count)
fs/libfs.c
1101
if (unlikely(!*mount)) {
fs/libfs.c
1107
if (!*mount)
fs/libfs.c
1108
*mount = mnt;
fs/libfs.c
1110
mntget(*mount);
fs/libfs.c
1118
void simple_release_fs(struct vfsmount **mount, int *count)
fs/libfs.c
1122
mnt = *mount;
fs/libfs.c
1124
*mount = NULL;
fs/mount.h
114
static inline struct mount *real_mount(struct vfsmount *mnt)
fs/mount.h
116
return container_of(mnt, struct mount, mnt);
fs/mount.h
119
static inline int mnt_has_parent(const struct mount *mnt)
fs/mount.h
13
struct mount * root;
fs/mount.h
130
extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *);
fs/mount.h
136
struct mount *m = __lookup_mnt(path->mnt, path->dentry);
fs/mount.h
183
static inline bool anon_ns_root(const struct mount *m)
fs/mount.h
190
static inline bool mnt_ns_attached(const struct mount *mnt)
fs/mount.h
200
static inline void move_from_ns(struct mount *mnt)
fs/mount.h
212
bool has_locked_children(struct mount *mnt, struct dentry *dentry);
fs/mount.h
222
static inline void mnt_notify_add(struct mount *m)
fs/mount.h
232
static inline void mnt_notify_add(struct mount *m)
fs/mount.h
237
static inline struct mount *topmost_overmount(struct mount *m)
fs/mount.h
244
static inline bool __test_write_hold(struct mount * __aligned(1) *val)
fs/mount.h
249
static inline bool test_write_hold(const struct mount *m)
fs/mount.h
254
static inline void set_write_hold(struct mount *m)
fs/mount.h
260
static inline void clear_write_hold(struct mount *m)
fs/mount.h
47
struct mount *mnt_parent;
fs/mount.h
63
struct mount *mnt_next_for_sb; /* the next two fields are hlist_node, */
fs/mount.h
64
struct mount * __aligned(1) *mnt_pprev_for_sb;
fs/mount.h
73
struct mount *mnt_master; /* slave is on master->mnt_slave_list */
fs/mount.h
93
struct mount *overmount; /* mounted on ->mnt_root */
fs/namei.c
1462
struct mount *mnt = real_mount(path->mnt);
fs/namei.c
1463
struct mount *parent;
fs/namei.c
1483
static bool choose_mountpoint_rcu(struct mount *m, const struct path *root,
fs/namei.c
1503
static bool choose_mountpoint(struct mount *m, const struct path *root,
fs/namei.c
1703
struct mount *mounted = __lookup_mnt(path->mnt, dentry);
fs/namespace.c
1006
static void umount_mnt(struct mount *mnt)
fs/namespace.c
1014
void mnt_set_mountpoint(struct mount *mnt,
fs/namespace.c
1016
struct mount *child_mnt)
fs/namespace.c
1024
static void make_visible(struct mount *mnt)
fs/namespace.c
1026
struct mount *parent = mnt->mnt_parent;
fs/namespace.c
1050
static void attach_mnt(struct mount *mnt, struct mount *parent,
fs/namespace.c
1057
void mnt_change_mountpoint(struct mount *parent, struct mountpoint *mp, struct mount *mnt)
fs/namespace.c
1070
static inline struct mount *node_to_mount(struct rb_node *node)
fs/namespace.c
1072
return node ? rb_entry(node, struct mount, mnt_node) : NULL;
fs/namespace.c
1075
static void mnt_add_to_ns(struct mnt_namespace *ns, struct mount *mnt)
fs/namespace.c
1104
static struct mount *next_mnt(struct mount *p, struct mount *root)
fs/namespace.c
1117
return list_entry(next, struct mount, mnt_child);
fs/namespace.c
1120
static struct mount *skip_mnt_tree(struct mount *p)
fs/namespace.c
1124
p = list_entry(prev, struct mount, mnt_child);
fs/namespace.c
1133
static void commit_tree(struct mount *mnt)
fs/namespace.c
1138
for (struct mount *m = mnt; m; m = next_mnt(m, mnt))
fs/namespace.c
1148
static void setup_mnt(struct mount *m, struct dentry *root)
fs/namespace.c
1173
struct mount *mnt;
fs/namespace.c
1240
static struct mount *clone_mnt(struct mount *old, struct dentry *root,
fs/namespace.c
1243
struct mount *mnt;
fs/namespace.c
1292
static void cleanup_mnt(struct mount *mnt)
fs/namespace.c
1295
struct mount *m;
fs/namespace.c
1319
cleanup_mnt(container_of(head, struct mount, mnt_rcu));
fs/namespace.c
1326
struct mount *m, *t;
fs/namespace.c
1333
static void noinline mntput_no_expire_slowpath(struct mount *mnt)
fs/namespace.c
1366
struct mount *p, *tmp;
fs/namespace.c
1389
static void mntput_no_expire(struct mount *mnt)
fs/namespace.c
1412
struct mount *m = real_mount(mnt);
fs/namespace.c
1472
struct mount *p;
fs/namespace.c
1484
static struct mount *mnt_find_id_at(struct mnt_namespace *ns, u64 mnt_id)
fs/namespace.c
1487
struct mount *ret = NULL;
fs/namespace.c
1490
struct mount *m = node_to_mount(node);
fs/namespace.c
1508
static struct mount *mnt_find_id_at_reverse(struct mnt_namespace *ns, u64 mnt_id)
fs/namespace.c
1511
struct mount *ret = NULL;
fs/namespace.c
1514
struct mount *m = node_to_mount(node);
fs/namespace.c
1534
struct mount *mnt;
fs/namespace.c
1546
struct mount *mnt = v;
fs/namespace.c
1550
struct mount *next = node_to_mount(node);
fs/namespace.c
1571
struct mount *r = v;
fs/namespace.c
1594
struct mount *mnt = real_mount(m);
fs/namespace.c
1599
for (struct mount *p = mnt; p; p = next_mnt(p, mnt)) {
fs/namespace.c
1640
static void mnt_notify(struct mount *p)
fs/namespace.c
1657
struct mount *m, *tmp;
fs/namespace.c
1688
struct mount *m;
fs/namespace.c
1738
static bool disconnect_mount(struct mount *mnt, enum umount_tree_flags how)
fs/namespace.c
1771
static void umount_tree(struct mount *mnt, enum umount_tree_flags how)
fs/namespace.c
1774
struct mount *p;
fs/namespace.c
1801
p = list_first_entry(&tmp_list, struct mount, mnt_list);
fs/namespace.c
1840
static void shrink_submounts(struct mount *mnt);
fs/namespace.c
1865
static int do_umount(struct mount *mnt, int flags)
fs/namespace.c
1979
struct mount *mnt;
fs/namespace.c
1989
mnt = hlist_entry(mp.node.next, struct mount, mnt_mp_list);
fs/namespace.c
2018
struct mount *mnt = real_mount(path->mnt);
fs/namespace.c
2037
struct mount *mnt = real_mount(path->mnt);
fs/namespace.c
213
static int mnt_alloc_id(struct mount *mnt)
fs/namespace.c
2157
struct mount *copy_tree(struct mount *src_root, struct dentry *dentry,
fs/namespace.c
2160
struct mount *res, *src_parent, *src_root_child, *src_mnt,
fs/namespace.c
225
static void mnt_free_id(struct mount *mnt)
fs/namespace.c
2251
struct mount *root = real_mount(path->mnt);
fs/namespace.c
2252
struct mount *child;
fs/namespace.c
2266
for (struct mount *m = child; m; m = next_mnt(m, child)) {
fs/namespace.c
2294
struct mount *m = real_mount(mnt);
fs/namespace.c
2323
static bool __has_locked_children(struct mount *mnt, struct dentry *dentry)
fs/namespace.c
2325
struct mount *child;
fs/namespace.c
233
static int mnt_alloc_group_id(struct mount *mnt)
fs/namespace.c
2337
bool has_locked_children(struct mount *mnt, struct dentry *dentry)
fs/namespace.c
2351
static bool check_for_nsfs_mounts(struct mount *subtree)
fs/namespace.c
2353
for (struct mount *p = subtree; p; p = next_mnt(p, subtree))
fs/namespace.c
2373
struct mount *old_mnt = real_mount(path->mnt);
fs/namespace.c
2374
struct mount *new_mnt;
fs/namespace.c
2412
static void lock_mnt_tree(struct mount *mnt)
fs/namespace.c
2414
struct mount *p;
fs/namespace.c
2439
static void cleanup_group_ids(struct mount *mnt, struct mount *end)
fs/namespace.c
2441
struct mount *p;
fs/namespace.c
2449
static int invent_group_ids(struct mount *mnt, bool recurse)
fs/namespace.c
2451
struct mount *p;
fs/namespace.c
246
void mnt_release_group_id(struct mount *mnt)
fs/namespace.c
2466
int count_mounts(struct mnt_namespace *ns, struct mount *mnt)
fs/namespace.c
2470
struct mount *p;
fs/namespace.c
255
static inline void mnt_add_count(struct mount *mnt, int n)
fs/namespace.c
2559
static int attach_recursive_mnt(struct mount *source_mnt,
fs/namespace.c
2563
struct mount *dest_mnt = dest->parent;
fs/namespace.c
2569
struct mount *child, *p;
fs/namespace.c
2570
struct mount *top;
fs/namespace.c
2635
struct mount *q;
fs/namespace.c
2644
struct mount *r = topmost_overmount(child);
fs/namespace.c
2659
child = hlist_entry(tree_list.first, struct mount, mnt_hash);
fs/namespace.c
2675
static inline struct mount *where_to_mount(const struct path *path,
fs/namespace.c
2679
struct mount *m;
fs/namespace.c
269
int mnt_get_count(struct mount *mnt)
fs/namespace.c
2740
struct mount *m, *n;
fs/namespace.c
2818
static int graft_tree(struct mount *mnt, const struct pinned_mountpoint *mp)
fs/namespace.c
2830
static int may_change_propagation(const struct mount *m)
fs/namespace.c
285
static struct mount *alloc_vfsmnt(const char *name)
fs/namespace.c
2865
struct mount *m;
fs/namespace.c
2866
struct mount *mnt = real_mount(path->mnt);
fs/namespace.c
287
struct mount *mnt = kmem_cache_zalloc(mnt_cache, GFP_KERNEL);
fs/namespace.c
2941
struct mount *mnt = real_mount(path->mnt);
fs/namespace.c
2960
static struct mount *__do_loopback(const struct path *old_path,
fs/namespace.c
2963
struct mount *old = real_mount(old_path->mnt);
fs/namespace.c
3000
struct mount *mnt = NULL;
fs/namespace.c
3037
struct mount *mnt, *p;
fs/namespace.c
3095
struct mount *new_ns_root, *old_ns_root;
fs/namespace.c
3097
struct mount *mnt;
fs/namespace.c
3239
static bool can_change_locked_flags(struct mount *mnt, unsigned int mnt_flags)
fs/namespace.c
3266
static int change_mount_ro_state(struct mount *mnt, unsigned int mnt_flags)
fs/namespace.c
3280
static void set_mount_attributes(struct mount *mnt, unsigned int mnt_flags)
fs/namespace.c
3325
struct mount *mnt = real_mount(path->mnt);
fs/namespace.c
3364
struct mount *mnt = real_mount(path->mnt);
fs/namespace.c
3407
static inline int tree_contains_unbindable(struct mount *mnt)
fs/namespace.c
3409
struct mount *p;
fs/namespace.c
3419
struct mount *from = real_mount(from_path->mnt);
fs/namespace.c
3420
struct mount *to = real_mount(to_path->mnt);
fs/namespace.c
3503
static bool mount_is_ancestor(const struct mount *p1, const struct mount *p2)
fs/namespace.c
3529
static int can_move_mount_beneath(const struct mount *mnt_from,
fs/namespace.c
3530
const struct mount *mnt_to,
fs/namespace.c
3533
struct mount *parent_mnt_to = mnt_to->mnt_parent;
fs/namespace.c
3614
static inline bool may_use_mount(struct mount *mnt)
fs/namespace.c
3634
struct mount *old = real_mount(old_path->mnt);
fs/namespace.c
365
static inline void mnt_inc_writers(struct mount *mnt)
fs/namespace.c
3681
struct mount *over = real_mount(new_path->mnt);
fs/namespace.c
3722
static int do_add_mount(struct mount *newmnt, const struct pinned_mountpoint *mp,
fs/namespace.c
3725
struct mount *parent = mp->parent;
fs/namespace.c
374
static inline void mnt_dec_writers(struct mount *mnt)
fs/namespace.c
383
static unsigned int mnt_get_writers(struct mount *mnt)
fs/namespace.c
3881
struct mount *mnt;
fs/namespace.c
3928
struct mount *mnt, *next;
fs/namespace.c
3953
mnt = list_first_entry(&graveyard, struct mount, mnt_expire);
fs/namespace.c
3967
static int select_submounts(struct mount *parent, struct list_head *graveyard)
fs/namespace.c
3969
struct mount *this_parent = parent;
fs/namespace.c
3978
struct mount *mnt = list_entry(tmp, struct mount, mnt_child);
fs/namespace.c
4013
static void shrink_submounts(struct mount *mnt)
fs/namespace.c
4016
struct mount *m;
fs/namespace.c
4021
m = list_first_entry(&graveyard, struct mount,
fs/namespace.c
4236
struct mount *p, *q;
fs/namespace.c
4237
struct mount *old;
fs/namespace.c
4238
struct mount *new;
fs/namespace.c
4304
struct mount *mnt = real_mount(m);
fs/namespace.c
433
struct mount *mnt = real_mount(m);
fs/namespace.c
4338
SYSCALL_DEFINE5(mount, char __user *, dev_name, char __user *, dir_name,
fs/namespace.c
4413
struct mount *mnt;
fs/namespace.c
4613
bool is_path_reachable(struct mount *mnt, struct dentry *dentry,
fs/namespace.c
4633
struct mount *new_mnt, *root_mnt, *old_mnt, *root_parent, *ex_parent;
fs/namespace.c
4746
static unsigned int recalc_flags(struct mount_kattr *kattr, struct mount *mnt)
fs/namespace.c
4758
static int can_idmap_mount(const struct mount_kattr *kattr, struct mount *mnt)
fs/namespace.c
4809
const struct mount *mnt)
fs/namespace.c
4816
static int mount_setattr_prepare(struct mount_kattr *kattr, struct mount *mnt)
fs/namespace.c
4818
struct mount *m;
fs/namespace.c
4845
for (struct mount *p = mnt; p != m; p = next_mnt(p, mnt))
fs/namespace.c
4851
static void do_idmap_mount(const struct mount_kattr *kattr, struct mount *mnt)
fs/namespace.c
4865
static void mount_setattr_commit(struct mount_kattr *kattr, struct mount *mnt)
fs/namespace.c
4867
struct mount *m;
fs/namespace.c
4889
struct mount *mnt = real_mount(path->mnt);
fs/namespace.c
5189
struct mount *mnt = mnt_find_id_at(ns, id);
fs/namespace.c
5241
static u64 mnt_to_propagation_flags(struct mount *m)
fs/namespace.c
5276
struct mount *m = real_mount(s->mnt);
fs/namespace.c
5291
struct mount *m = real_mount(s->mnt);
fs/namespace.c
5349
struct mount *r = real_mount(s->mnt);
fs/namespace.c
5621
static struct mount *listmnt_next(struct mount *curr, bool reverse)
fs/namespace.c
5635
struct mount *first, *child;
fs/namespace.c
5719
struct mount *m;
fs/namespace.c
5993
struct mount *r, *first;
fs/namespace.c
607
static inline int mnt_hold_writers(struct mount *mnt)
fs/namespace.c
6142
struct mount *mnt_root;
fs/namespace.c
6186
for (struct mount *p = mnt_root; p; p = next_mnt(p, mnt_root)) {
fs/namespace.c
6207
mnt_cache = kmem_cache_create("mnt_cache", sizeof(struct mount),
fs/namespace.c
6295
struct mount *root;
fs/namespace.c
6313
struct mount *mnt, *n;
fs/namespace.c
6317
struct mount *child;
fs/namespace.c
650
static inline void mnt_unhold_writers(struct mount *mnt)
fs/namespace.c
662
static inline void mnt_del_instance(struct mount *m)
fs/namespace.c
664
struct mount **p = m->mnt_pprev_for_sb;
fs/namespace.c
665
struct mount *next = m->mnt_next_for_sb;
fs/namespace.c
672
static inline void mnt_add_instance(struct mount *m, struct super_block *s)
fs/namespace.c
674
struct mount *first = s->s_mounts;
fs/namespace.c
683
static int mnt_make_readonly(struct mount *mnt)
fs/namespace.c
704
for (struct mount *m = sb->s_mounts; m; m = m->mnt_next_for_sb) {
fs/namespace.c
716
for (struct mount *m = sb->s_mounts; m; m = m->mnt_next_for_sb) {
fs/namespace.c
724
static void free_vfsmnt(struct mount *mnt)
fs/namespace.c
736
free_vfsmnt(container_of(head, struct mount, mnt_rcu));
fs/namespace.c
742
struct mount *mnt;
fs/namespace.c
789
struct mount *__lookup_mnt(struct vfsmount *mnt, struct dentry *dentry)
fs/namespace.c
792
struct mount *p;
fs/namespace.c
809
struct mount *child_mnt;
fs/namespace.c
841
struct mount *mnt, *n;
fs/namespace.c
855
struct mount *parent;
fs/namespace.c
946
static inline int check_mnt(const struct mount *mnt)
fs/namespace.c
951
static inline bool check_anonymous_mnt(struct mount *mnt)
fs/namespace.c
987
static void __umount_mnt(struct mount *mnt, struct list_head *shrink_list)
fs/namespace.c
990
struct mount *parent = mnt->mnt_parent;
fs/notify/fdinfo.c
121
struct mount *mnt = fsnotify_conn_mount(mark->connector);
fs/notify/fsnotify.c
500
struct mount *mnt = NULL;
fs/notify/fsnotify.h
24
static inline struct mount *fsnotify_conn_mount(
fs/pnode.c
126
static struct mount *trace_transfers(struct mount *m)
fs/pnode.c
129
struct mount *next = next_peer(m);
fs/pnode.c
152
static void set_destinations(struct mount *m, struct mount *master)
fs/pnode.c
154
struct mount *next;
fs/pnode.c
164
struct mount *m;
fs/pnode.c
17
static inline struct mount *next_peer(struct mount *p)
fs/pnode.c
177
static struct mount *__propagation_next(struct mount *m,
fs/pnode.c
178
struct mount *origin)
fs/pnode.c
181
struct mount *master = m->mnt_master;
fs/pnode.c
184
struct mount *next = next_peer(m);
fs/pnode.c
19
return list_entry(p->mnt_share.next, struct mount, mnt_share);
fs/pnode.c
204
static struct mount *propagation_next(struct mount *m,
fs/pnode.c
205
struct mount *origin)
fs/pnode.c
214
static struct mount *skip_propagation_subtree(struct mount *m,
fs/pnode.c
215
struct mount *origin)
fs/pnode.c
22
static inline struct mount *first_slave(struct mount *p)
fs/pnode.c
220
struct mount *p = __propagation_next(m, origin);
fs/pnode.c
228
static struct mount *next_group(struct mount *m, struct mount *origin)
fs/pnode.c
232
struct mount *next;
fs/pnode.c
24
return hlist_entry(p->mnt_slave_list.first, struct mount, mnt_slave);
fs/pnode.c
245
struct mount *master = m->mnt_master;
fs/pnode.c
260
static bool need_secondary(struct mount *m, struct mountpoint *dest_mp)
fs/pnode.c
27
static inline struct mount *next_slave(struct mount *p)
fs/pnode.c
274
static struct mount *find_master(struct mount *m,
fs/pnode.c
275
struct mount *last_copy,
fs/pnode.c
276
struct mount *original)
fs/pnode.c
278
struct mount *p;
fs/pnode.c
288
struct mount *parent = last_copy->mnt_parent;
fs/pnode.c
29
return hlist_entry(p->mnt_slave.next, struct mount, mnt_slave);
fs/pnode.c
311
int propagate_mnt(struct mount *dest_mnt, struct mountpoint *dest_mp,
fs/pnode.c
312
struct mount *source_mnt, struct hlist_head *tree_list)
fs/pnode.c
314
struct mount *m, *n, *copy, *this;
fs/pnode.c
33
static struct mount *get_peer_under_root(struct mount *mnt,
fs/pnode.c
37
struct mount *m = mnt;
fs/pnode.c
371
static inline int do_refcount_check(struct mount *mnt, int count)
fs/pnode.c
395
bool propagation_would_overmount(const struct mount *from,
fs/pnode.c
396
const struct mount *to,
fs/pnode.c
405
for (const struct mount *m = to; m; m = m->mnt_master) {
fs/pnode.c
423
int propagate_mount_busy(struct mount *mnt, int refcnt)
fs/pnode.c
425
struct mount *parent = mnt->mnt_parent;
fs/pnode.c
438
for (struct mount *m = propagation_next(parent, parent); m;
fs/pnode.c
441
struct mount *child = __lookup_mnt(&m->mnt, mnt->mnt_mountpoint);
fs/pnode.c
466
void propagate_mount_unlock(struct mount *mnt)
fs/pnode.c
468
struct mount *parent = mnt->mnt_parent;
fs/pnode.c
469
struct mount *m, *child;
fs/pnode.c
481
static inline bool is_candidate(struct mount *m)
fs/pnode.c
486
static void umount_one(struct mount *m, struct list_head *to_umount)
fs/pnode.c
494
static void remove_from_candidate_list(struct mount *m)
fs/pnode.c
503
struct mount *m, *p, *q;
fs/pnode.c
512
struct mount *child = __lookup_mnt(&q->mnt,
fs/pnode.c
542
static void trim_ancestors(struct mount *m)
fs/pnode.c
544
struct mount *p;
fs/pnode.c
56
int get_dominating_id(struct mount *mnt, const struct path *root)
fs/pnode.c
565
static void trim_one(struct mount *m, struct list_head *to_umount)
fs/pnode.c
568
struct mount *n;
fs/pnode.c
58
struct mount *m;
fs/pnode.c
597
static void handle_locked(struct mount *m, struct list_head *to_umount)
fs/pnode.c
599
struct mount *cutoff = m, *p;
fs/pnode.c
61
struct mount *d = get_peer_under_root(m, mnt->mnt_ns, root);
fs/pnode.c
631
static void reparent(struct mount *m)
fs/pnode.c
633
struct mount *p = m;
fs/pnode.c
660
struct mount *m, *p;
fs/pnode.c
673
m = list_first_entry(&candidates,struct mount, mnt_list);
fs/pnode.c
680
struct mount *over = m->overmount;
fs/pnode.c
69
static inline bool will_be_unmounted(struct mount *m)
fs/pnode.c
74
static void transfer_propagation(struct mount *mnt, struct mount *to)
fs/pnode.c
77
struct mount *m;
fs/pnode.c
93
void change_mnt_propagation(struct mount *mnt, int type)
fs/pnode.c
95
struct mount *m = mnt->mnt_master;
fs/pnode.h
33
static inline void set_mnt_shared(struct mount *mnt)
fs/pnode.h
39
static inline bool peers(const struct mount *m1, const struct mount *m2)
fs/pnode.h
44
void change_mnt_propagation(struct mount *, int);
fs/pnode.h
46
int propagate_mnt(struct mount *, struct mountpoint *, struct mount *,
fs/pnode.h
49
int propagate_mount_busy(struct mount *, int);
fs/pnode.h
50
void propagate_mount_unlock(struct mount *);
fs/pnode.h
51
void mnt_release_group_id(struct mount *);
fs/pnode.h
52
int get_dominating_id(struct mount *mnt, const struct path *root);
fs/pnode.h
53
int mnt_get_count(struct mount *mnt);
fs/pnode.h
54
void mnt_set_mountpoint(struct mount *, struct mountpoint *,
fs/pnode.h
55
struct mount *);
fs/pnode.h
56
void mnt_change_mountpoint(struct mount *parent, struct mountpoint *mp,
fs/pnode.h
57
struct mount *mnt);
fs/pnode.h
58
struct mount *copy_tree(struct mount *, struct dentry *, int);
fs/pnode.h
59
bool is_path_reachable(struct mount *, struct dentry *,
fs/pnode.h
61
int count_mounts(struct mnt_namespace *ns, struct mount *mnt);
fs/pnode.h
62
bool propagation_would_overmount(const struct mount *from,
fs/pnode.h
63
const struct mount *to,
fs/proc_namespace.c
104
struct mount *r = real_mount(mnt);
fs/proc_namespace.c
138
struct mount *r = real_mount(mnt);
fs/proc_namespace.c
196
struct mount *r = real_mount(mnt);
fs/tests/binfmt_elf_kunit.c
14
struct elf_phdr mount[] = {
fs/tests/binfmt_elf_kunit.c
49
KUNIT_EXPECT_EQ(test, total_mapping_size(mount, ARRAY_SIZE(mount)), mount_size);
include/linux/fs.h
3270
extern int simple_pin_fs(struct file_system_type *, struct vfsmount **mount, int *count);
include/linux/fs.h
3271
extern void simple_release_fs(struct vfsmount **mount, int *count);
include/linux/fs/super_types.h
166
struct mount *s_mounts; /* list of mounts; _not_ for fs use */
include/linux/fs/super_types.h
29
struct mount;
samples/binderfs/binderfs_example.c
30
ret = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0);
samples/binderfs/binderfs_example.c
44
ret = mount(NULL, "/dev/binderfs", "binder", 0, 0);
samples/seccomp/user-trap.c
187
if (mount(source, target, NULL, req->data.args[3], NULL) < 0) {
samples/seccomp/user-trap.c
253
if (mount("/dev/sda", "/tmp/foo", NULL, 0, NULL) != -1) {
samples/seccomp/user-trap.c
266
if (mount("/tmp/foo", "/tmp/foo", NULL, MS_BIND, NULL) < 0) {
security/apparmor/apparmorfs.c
2622
struct vfsmount *mount = NULL;
security/apparmor/apparmorfs.c
2626
int error = simple_pin_fs(parent->d_sb->s_type, &mount, &count);
security/apparmor/apparmorfs.c
2650
aa_null.mnt = mntget(mount);
security/apparmor/apparmorfs.c
2658
simple_release_fs(&mount, &count);
security/inode.c
125
error = simple_pin_fs(&fs_type, &mount, &mount_count);
security/inode.c
129
parent = mount->mnt_root;
security/inode.c
166
simple_release_fs(&mount, &mount_count);
security/inode.c
27
static struct vfsmount *mount;
security/inode.c
280
simple_release_fs(&mount, &mount_count);
security/inode.c
304
simple_pin_fs(&fs_type, &mount, &mount_count);
security/inode.c
306
simple_release_fs(&mount, &mount_count);
security/tomoyo/common.h
489
} mount;
security/tomoyo/mount.c
161
r->param.mount.need_dev = need_dev;
security/tomoyo/mount.c
162
r->param.mount.dev = &rdev;
security/tomoyo/mount.c
163
r->param.mount.dir = &rdir;
security/tomoyo/mount.c
164
r->param.mount.type = &rtype;
security/tomoyo/mount.c
165
r->param.mount.flags = flags;
security/tomoyo/mount.c
34
r->param.mount.dev->name,
security/tomoyo/mount.c
35
r->param.mount.dir->name,
security/tomoyo/mount.c
36
r->param.mount.type->name,
security/tomoyo/mount.c
37
r->param.mount.flags);
security/tomoyo/mount.c
54
return tomoyo_compare_number_union(r->param.mount.flags,
security/tomoyo/mount.c
56
tomoyo_compare_name_union(r->param.mount.type,
security/tomoyo/mount.c
58
tomoyo_compare_name_union(r->param.mount.dir,
security/tomoyo/mount.c
60
(!r->param.mount.need_dev ||
security/tomoyo/mount.c
61
tomoyo_compare_name_union(r->param.mount.dev,
tools/bpf/bpftool/common.c
158
while (mount("", target, "none", MS_PRIVATE | MS_REC, NULL)) {
tools/bpf/bpftool/common.c
166
if (mount(target, target, "none", MS_BIND, NULL)) {
tools/bpf/bpftool/common.c
176
if (mount(type, target, type, 0, "mode=0700")) {
tools/lib/api/fs/fs.c
283
if (mount(NULL, mountpoint, fs->name, 0, NULL) == 0 &&
tools/testing/selftests/bpf/cgroup_helpers.c
216
if (mount("none", "/", NULL, MS_REC | MS_PRIVATE, NULL)) {
tools/testing/selftests/bpf/cgroup_helpers.c
221
if (mount("none", CGROUP_MOUNT_PATH, "cgroup2", 0, NULL) && errno != EBUSY) {
tools/testing/selftests/bpf/cgroup_helpers.c
567
if (mount("tmpfs", CGROUP_MOUNT_DFLT, "tmpfs", 0, NULL) &&
tools/testing/selftests/bpf/cgroup_helpers.c
578
if (mount("net_cls", NETCLS_MOUNT_PATH, "cgroup", 0, "net_cls")) {
tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c
94
err = mount("bpf", BPFFS_ROOT, "bpf", 0, NULL);
tools/testing/selftests/bpf/prog_tests/connect_ping.c
107
if (!ASSERT_OK(mount("none", "/sys", NULL, MS_PRIVATE, NULL),
tools/testing/selftests/bpf/prog_tests/connect_ping.c
110
if (!ASSERT_OK(mount("sysfs", "/sys", "sysfs", 0, NULL),
tools/testing/selftests/bpf/prog_tests/connect_ping.c
113
if (!ASSERT_OK(mount("bpffs", "/sys/fs/bpf", "bpf", 0, NULL),
tools/testing/selftests/bpf/prog_tests/test_bpffs.c
43
err = mount("", "/", "", MS_REC | MS_PRIVATE, NULL);
tools/testing/selftests/bpf/prog_tests/test_bpffs.c
54
err = mount("none", TDIR, "tmpfs", 0, NULL);
tools/testing/selftests/bpf/prog_tests/test_bpffs.c
65
err = mount("bpf", TDIR "/fs1", "bpf", 0, NULL);
tools/testing/selftests/bpf/prog_tests/test_bpffs.c
68
err = mount("bpf", TDIR "/fs2", "bpf", 0, NULL);
tools/testing/selftests/capabilities/test_execve.c
123
if (mount("none", "/", NULL, MS_REC | MS_PRIVATE, NULL) != 0)
tools/testing/selftests/capabilities/test_execve.c
136
if (mount("private_tmp", ".", "tmpfs", 0, "mode=0777") != 0)
tools/testing/selftests/cgroup/lib/cgroup_util.c
262
char *fs, *mount, *type, *options;
tools/testing/selftests/cgroup/lib/cgroup_util.c
273
mount = strtok(NULL, delim);
tools/testing/selftests/cgroup/lib/cgroup_util.c
283
cg_read_strstr(mount, "cgroup.controllers", controller))
tools/testing/selftests/cgroup/lib/cgroup_util.c
288
strncpy(root, mount, len);
tools/testing/selftests/cgroup/test_core.c
889
r = mount("none", root, "cgroup", 0, options);
tools/testing/selftests/exec/check-exec.c
137
ASSERT_EQ(0, mount("test", workdir_path, "tmpfs",
tools/testing/selftests/exec/recursion-depth.c
43
if (mount(NULL, "/", NULL, MS_PRIVATE | MS_REC, NULL) == -1)
tools/testing/selftests/exec/recursion-depth.c
47
if (mount(NULL, "/tmp", "ramfs", 0, NULL) == -1)
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
415
ret = mount(NULL, binderfs_mntpt, "binder", 0, 0);
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
49
ret = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0);
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
79
ret = mount(NULL, binderfs_mntpt, "binder", 0, 0);
tools/testing/selftests/filesystems/devpts_pts.c
210
ret = mount("devpts", mntpoint, "devpts", MS_NOSUID | MS_NOEXEC,
tools/testing/selftests/filesystems/devpts_pts.c
238
ret = mount("/dev/pts/ptmx", "/dev/ptmx", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/devpts_pts.c
265
ret = mount("/dev/pts/ptmx", ptmx, NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/devpts_pts.c
296
ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
tools/testing/selftests/filesystems/fclog.c
42
ASSERT_SUCCESS(mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL));
tools/testing/selftests/filesystems/file_stressor.c
64
ASSERT_EQ(mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0);
tools/testing/selftests/filesystems/fuse/fusectl_test.c
59
ASSERT_EQ(mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
243
ret = mount("", "/", NULL, MS_SHARED, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
247
ret = mount("/", "/", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
257
ret = mount("/", "/", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
282
ret = mount("/", "/a", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
322
ret = mount("", "/", NULL, MS_PRIVATE, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
378
ret = mount("/", "/a", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
381
ret = mount("", "/a", NULL, MS_SHARED, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
384
ret = mount("/a", "/b", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
387
ret = mount("", "/b", NULL, MS_SLAVE, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
395
ret = mount("/", "/a", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
403
ret = mount("/", "/b", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
450
ret = mount("/", "/a", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
453
ret = mount("/", "/a/b", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
469
mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
491
ret = mount("tmpfs", "/a", "tmpfs", 0, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
502
ret = mount("/a", "/a/new", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
56
ASSERT_EQ(mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
64
ASSERT_EQ(mount("tmpfs", self->root_mntpoint, "tmpfs", 0, NULL), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
270
ret = mount("", "/", NULL, MS_SHARED, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
274
ret = mount("/", "/", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
284
ret = mount("/", "/", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
309
ret = mount("/", "/a", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
349
ret = mount("", "/", NULL, MS_PRIVATE, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
405
ret = mount("/", "/a", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
408
ret = mount("", "/a", NULL, MS_SHARED, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
411
ret = mount("/a", "/b", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
414
ret = mount("", "/b", NULL, MS_SLAVE, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
422
ret = mount("/", "/a", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
430
ret = mount("/", "/b", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
477
ret = mount("/", "/a", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
480
ret = mount("/", "/a/b", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
496
mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
518
ret = mount("tmpfs", "/a", "tmpfs", 0, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
529
ret = mount("/a", "/a/new", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
73
ASSERT_EQ(mount("tmpfs", self->root_mntpoint, "tmpfs", 0, NULL), 0);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
948
ret = mount("tmpfs", self->tmpdir, "tmpfs", 0, NULL);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
955
ret = mount(NULL, self->tmpdir, NULL, MS_UNBINDABLE, NULL);
tools/testing/selftests/filesystems/statmount/statmount_test.c
159
ret = mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL);
tools/testing/selftests/filesystems/statmount/statmount_test.c
178
ret = mount(root_mntpoint, root_mntpoint, NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/statmount/statmount_test.c
200
ret = mount("", "/", NULL, MS_REC|MS_SHARED, NULL);
tools/testing/selftests/filesystems/statmount/statmount_test.c
208
ret = mount("/", "/", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/statmount/statmount_test.c
683
if (mount("statmount.test", tmpdir, "tmpfs", 0, NULL)) {
tools/testing/selftests/filesystems/statmount/statmount_test.c
697
if (mount(subdir, subdir, NULL, MS_BIND, 0)) {
tools/testing/selftests/filesystems/statmount/statmount_test.c
818
if (mount("statmount.test", tmpdir, "tmpfs", 0, NULL)) {
tools/testing/selftests/filesystems/statmount/statmount_test.c
831
if (mount(subdir, subdir, 0, MS_BIND, NULL)) {
tools/testing/selftests/filesystems/statmount/statmount_test_ns.c
147
if (mount(mnt, mnt, NULL, MS_BIND, 0)) {
tools/testing/selftests/filesystems/utils.c
509
ret = mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL);
tools/testing/selftests/firmware/fw_namespace.c
101
if (mount(NULL, "/", NULL, MS_SLAVE|MS_REC, NULL) == -1)
tools/testing/selftests/firmware/fw_namespace.c
105
if (mount("test", "/lib/firmware", "tmpfs", MS_RDONLY, NULL) == -1)
tools/testing/selftests/firmware/fw_namespace.c
124
if (mount("test", "/lib/firmware", "tmpfs", 0, NULL) == -1)
tools/testing/selftests/firmware/fw_namespace.c
68
if (mount("test", "/lib/firmware", "tmpfs", MS_RDONLY, NULL) == -1)
tools/testing/selftests/kho/init.c
19
if (mount("debugfs", "/debugfs", "debugfs", 0, NULL) < 0)
tools/testing/selftests/kho/init.c
22
return mount("proc", "/proc", "proc", 0, NULL);
tools/testing/selftests/landlock/fs_test.c
1701
ASSERT_EQ(-1, mount(NULL, dir_s3d2, NULL, MS_RDONLY, NULL));
tools/testing/selftests/landlock/fs_test.c
1760
ASSERT_EQ(0, mount(NULL, dir_s1d2, NULL, MS_PRIVATE | MS_REC, NULL));
tools/testing/selftests/landlock/fs_test.c
1789
ASSERT_EQ(-1, mount(NULL, dir_s3d2, NULL, MS_PRIVATE | MS_REC, NULL));
tools/testing/selftests/landlock/fs_test.c
290
return mount(mnt->source ?: mnt->type, target, mnt->type, mnt->flags,
tools/testing/selftests/landlock/fs_test.c
319
ASSERT_EQ(0, mount(NULL, TMP_DIR, NULL, MS_PRIVATE | MS_REC, NULL));
tools/testing/selftests/landlock/fs_test.c
4595
ASSERT_EQ(0, mount(dir_s1d2, dir_s2d2, NULL, MS_BIND, NULL));
tools/testing/selftests/landlock/fs_test.c
5284
ASSERT_EQ(0, mount(TMP_DIR "/s1d1/s1d2", TMP_DIR "/s2d1/s2d2", NULL,
tools/testing/selftests/landlock/fs_test.c
5846
ASSERT_EQ(0, mount(TMP_DIR "/s1d1/s1d2", TMP_DIR "/s2d1/s2d2/s2d3/s2d4",
tools/testing/selftests/landlock/fs_test.c
5848
ASSERT_EQ(0, mount(TMP_DIR "/s2d1/s2d2", TMP_DIR "/s3d1/s3d2", NULL,
tools/testing/selftests/landlock/fs_test.c
6427
ASSERT_EQ(0, mount("overlay", MERGE_DATA, "overlay", 0,
tools/testing/selftests/landlock/fs_test.c
7625
TEST_F(audit_layout1, mount)
tools/testing/selftests/landlock/fs_test.c
7636
EXPECT_EQ(-1, mount(NULL, dir_s3d2, NULL, MS_RDONLY, NULL));
tools/testing/selftests/mm/split_huge_page_test.c
506
status = mount("tmpfs", tmpfs_loc, "tmpfs", 0, "huge=always,size=4m");
tools/testing/selftests/mount/nosymfollow-test.c
206
if (mount("testing", TMP, "ramfs", 0, NULL) != 0)
tools/testing/selftests/mount/nosymfollow-test.c
212
if (mount("testing", TMP, "ramfs", MS_REMOUNT|MS_NOSYMFOLLOW, NULL) != 0)
tools/testing/selftests/mount/unprivileged-remount-test.c
216
if (mount("testing", "/tmp", fstype, mount_flags, mount_options) != 0) {
tools/testing/selftests/mount/unprivileged-remount-test.c
230
if (mount("/tmp", "/tmp", "none",
tools/testing/selftests/mount/unprivileged-remount-test.c
237
if (mount("/tmp", "/tmp", "none",
tools/testing/selftests/mount/unprivileged-remount-test.c
297
ret = mount(orig_path, dest_path, "bind", MS_BIND | MS_REC, NULL);
tools/testing/selftests/mount/unprivileged-remount-test.c
303
ret = mount(dest_path, dest_path, "none",
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1000
ASSERT_EQ(mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1005
ASSERT_EQ(mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1012
ASSERT_EQ(mount("testing", "/tmp/B", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1019
ASSERT_EQ(mount("testing", "/tmp/B/BB", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1022
ASSERT_EQ(mount("testing", "/mnt", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1027
ASSERT_EQ(mount("testing", "/mnt/A", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1032
ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1036
ASSERT_EQ(mount("testing", "/mnt/B", "ramfs",
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1041
ASSERT_EQ(mount("testing", "/tmp/B/BB", "devpts",
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1436
ASSERT_EQ(mount("testing", "/mnt/A", "ramfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1441
ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
2091
ASSERT_EQ(mount(NULL, "/mnt", NULL, MS_REC | MS_SHARED, NULL), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
2122
ASSERT_EQ(mount(NULL, "/mnt/A", "tmpfs", 0, NULL), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
220
if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0))
tools/testing/selftests/mount_setattr/mount_setattr_test.c
380
ASSERT_EQ(mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
385
ASSERT_EQ(mount("testing", "/tmp/B", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
394
ASSERT_EQ(mount("testing", "/tmp/B/BB", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
397
ASSERT_EQ(mount("testing", "/mnt", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
402
ASSERT_EQ(mount("testing", "/mnt/A", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
407
ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
411
ASSERT_EQ(mount("testing", "/mnt/B", "ramfs",
tools/testing/selftests/mount_setattr/mount_setattr_test.c
416
ASSERT_EQ(mount("testing", "/tmp/B/BB", "devpts",
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
118
if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0))
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
198
if (mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
202
if (mount(NULL, "/tmp", NULL, MS_PRIVATE, 0))
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
211
if (mount("testing", SET_GROUP_FROM, "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
215
if (mount(SET_GROUP_FROM, SET_GROUP_TO, NULL, MS_BIND, NULL))
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
218
if (mount(NULL, SET_GROUP_FROM, NULL, MS_SHARED, 0))
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
246
ASSERT_EQ(mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
251
ASSERT_EQ(mount("testing", SET_GROUP_A, "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
319
ret = mount(NULL, SET_GROUP_A, NULL, MS_SHARED, 0);
tools/testing/selftests/namespaces/listns_efault_test.c
122
if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0))
tools/testing/selftests/namespaces/listns_efault_test.c
131
if (mount("tmpfs", "/tmp/test_mnt1", "tmpfs", 0, NULL) == -1)
tools/testing/selftests/namespaces/listns_efault_test.c
133
if (mount("tmpfs", "/tmp/test_mnt2", "tmpfs", 0, NULL) == -1)
tools/testing/selftests/namespaces/listns_efault_test.c
328
if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0))
tools/testing/selftests/namespaces/listns_efault_test.c
337
if (mount("tmpfs", "/tmp/test_mnt1", "tmpfs", 0, NULL) == -1)
tools/testing/selftests/namespaces/listns_efault_test.c
339
if (mount("tmpfs", "/tmp/test_mnt2", "tmpfs", 0, NULL) == -1)
tools/testing/selftests/namespaces/listns_efault_test.c
470
if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0))
tools/testing/selftests/namespaces/listns_efault_test.c
479
if (mount("tmpfs", "/tmp/test_mnt1", "tmpfs", 0, NULL) == -1)
tools/testing/selftests/namespaces/listns_efault_test.c
481
if (mount("tmpfs", "/tmp/test_mnt2", "tmpfs", 0, NULL) == -1)
tools/testing/selftests/namespaces/ns_active_ref_test.c
871
ret = mount(NULL, "/", NULL, MS_PRIVATE | MS_REC, NULL);
tools/testing/selftests/namespaces/ns_active_ref_test.c
887
ret = mount("/proc/self/ns/net", tmpfile, NULL, MS_BIND, NULL);
tools/testing/selftests/net/tcp_ao/lib/ftrace.c
45
if (mount("tracefs", ftrace_path, "tracefs", 0, "rw"))
tools/testing/selftests/nolibc/nolibc-test.c
1904
if (mount("/dev", "/dev", "devtmpfs", 0, 0) != 0) {
tools/testing/selftests/nolibc/nolibc-test.c
1937
if (mount("none", "/proc", "proc", 0, 0) != 0)
tools/testing/selftests/openat2/helpers.h
81
#define E_mount(...) E_func(mount, __VA_ARGS__)
tools/testing/selftests/pid_namespace/pid_max.c
164
ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
tools/testing/selftests/pid_namespace/pid_max.c
172
ret = mount("proc", "/proc", "proc", 0, NULL);
tools/testing/selftests/pid_namespace/pid_max.c
233
ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
tools/testing/selftests/pid_namespace/pid_max.c
241
ret = mount("proc", "/proc", "proc", 0, NULL);
tools/testing/selftests/pid_namespace/pid_max.c
290
ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
tools/testing/selftests/pid_namespace/pid_max.c
298
ret = mount("proc", "/proc", "proc", 0, NULL);
tools/testing/selftests/pid_namespace/pid_max.c
43
ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
tools/testing/selftests/pid_namespace/pid_max.c
51
ret = mount("proc", "/proc", "proc", 0, NULL);
tools/testing/selftests/pid_namespace/pid_max.c
89
ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
tools/testing/selftests/pid_namespace/pid_max.c
97
ret = mount("proc", "/proc", "proc", 0, NULL);
tools/testing/selftests/pidfd/pidfd_fdinfo_test.c
231
r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0);
tools/testing/selftests/pidfd/pidfd_fdinfo_test.c
238
r = mount("proc", "/proc", "proc", 0, NULL);
tools/testing/selftests/pidfd/pidfd_test.c
239
ret = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0);
tools/testing/selftests/pidfd/pidfd_test.c
256
ret = mount("proc", "/proc", "proc", 0, NULL);
tools/testing/selftests/proc/proc-multiple-procfs.c
33
assert(!mount("proc", procdir1, "proc", 0, "hidepid=1"));
tools/testing/selftests/proc/proc-multiple-procfs.c
34
assert(!mount("proc", procdir2, "proc", 0, "hidepid=2"));
tools/testing/selftests/proc/proc-pid-vm.c
69
if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) {
tools/testing/selftests/proc/proc-pid-vm.c
72
if (mount(NULL, "/tmp", "tmpfs", 0, NULL) == -1) {
tools/testing/selftests/proc/proc-pidns.c
106
ASSERT_SUCCESS(mount("proc", "/tmp/proc-host", "proc", 0, "pidns=/proc/self/ns/pid"));
tools/testing/selftests/proc/proc-pidns.c
110
ASSERT_SUCCESS(mount("proc", "/tmp/proc-dummy", "proc", 0, "pidns=/tmp/dummy/pidns"));
tools/testing/selftests/proc/proc-pidns.c
154
ASSERT_SUCCESS(mount("proc", "/tmp/proc", "proc", 0, ""));
tools/testing/selftests/proc/proc-pidns.c
159
ASSERT_ERRNO_EQ(-EBUSY, mount(NULL, "/tmp/proc", NULL, MS_REMOUNT, "pidns=/tmp/dummy/pidns"));
tools/testing/selftests/proc/proc-pidns.c
54
ASSERT_SUCCESS(mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL));
tools/testing/selftests/proc/proc-pidns.c
60
ASSERT_SUCCESS(mount("tmpfs", "/tmp", "tmpfs", 0, NULL));
tools/testing/selftests/proc/proc-pidns.c
78
ASSERT_SUCCESS(mount("/proc/self/ns/pid", "/tmp/dummy/pidns", NULL, MS_BIND, NULL));
tools/testing/selftests/proc/proc-pidns.c
79
ASSERT_SUCCESS(mount("proc", "/tmp/dummy/proc", "proc", 0, NULL));
tools/testing/selftests/proc/proc-subset-pid.c
48
if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) {
tools/testing/selftests/proc/proc-subset-pid.c
51
if (mount(NULL, "/proc", "proc", 0, "subset=pid") == -1) {
tools/testing/selftests/resctrl/resctrlfs.c
72
ret = mount("resctrl", RESCTRL_PATH, "resctrl", 0, NULL);
tools/testing/selftests/safesetid/safesetid-test.c
169
if (mount("securityfs", "/sys/kernel/security",
tools/testing/selftests/tmpfs/bug-link-o-tmpfile.c
50
if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) {
tools/testing/selftests/tmpfs/bug-link-o-tmpfile.c
55
if (mount(NULL, "/tmp", "tmpfs", 0, "nr_inodes=3") == -1) {
tools/testing/selftests/user_events/user_events_selftests.h
40
if (mount(NULL, "/sys/kernel/tracing", "tracefs", 0, NULL) != 0) {
tools/testing/selftests/wireguard/qemu/init.c
100
if (mount("none", "/run", "tmpfs", 0, NULL))
tools/testing/selftests/wireguard/qemu/init.c
102
if (mount("none", "/sys/kernel/debug", "debugfs", 0, NULL))
tools/testing/selftests/wireguard/qemu/init.c
92
if (mount("none", "/dev", "devtmpfs", 0, NULL))
tools/testing/selftests/wireguard/qemu/init.c
94
if (mount("none", "/proc", "proc", 0, NULL))
tools/testing/selftests/wireguard/qemu/init.c
96
if (mount("none", "/sys", "sysfs", 0, NULL))
tools/testing/selftests/wireguard/qemu/init.c
98
if (mount("none", "/tmp", "tmpfs", 0, NULL))