Symbol: mount
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
3981
int f2fs_build_free_nids(struct f2fs_sb_info *sbi, bool sync, bool mount);
fs/f2fs/node.c
2597
bool sync, bool mount)
fs/f2fs/node.c
2616
if (!mount) {
fs/f2fs/node.c
2679
int f2fs_build_free_nids(struct f2fs_sb_info *sbi, bool sync, bool mount)
fs/f2fs/node.c
2684
ret = __f2fs_build_free_nids(sbi, sync, mount);
fs/fhandle.c
288
static bool capable_wrt_mount(struct mount *mount)
fs/fhandle.c
297
mnt_ns = READ_ONCE(mount->mnt_ns);
fs/fs_pin.c
71
void mnt_pin_kill(struct mount *m)
fs/internal.h
14
struct mount;
fs/internal.h
246
extern void mnt_pin_kill(struct mount *m);
fs/libfs.c
1096
int simple_pin_fs(struct file_system_type *type, struct vfsmount **mount, int *count)
fs/libfs.c
1100
if (unlikely(!*mount)) {
fs/libfs.c
1106
if (!*mount)
fs/libfs.c
1107
*mount = mnt;
fs/libfs.c
1109
mntget(*mount);
fs/libfs.c
1117
void simple_release_fs(struct vfsmount **mount, int *count)
fs/libfs.c
1121
mnt = *mount;
fs/libfs.c
1123
*mount = NULL;
fs/mount.h
103
struct mount *overmount; /* mounted on ->mnt_root */
fs/mount.h
124
static inline struct mount *real_mount(struct vfsmount *mnt)
fs/mount.h
126
return container_of(mnt, struct mount, mnt);
fs/mount.h
129
static inline int mnt_has_parent(const struct mount *mnt)
fs/mount.h
13
struct mount * root;
fs/mount.h
140
extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *);
fs/mount.h
146
struct mount *m = __lookup_mnt(path->mnt, path->dentry);
fs/mount.h
193
static inline bool anon_ns_root(const struct mount *m)
fs/mount.h
200
static inline bool mnt_ns_attached(const struct mount *mnt)
fs/mount.h
210
static inline void move_from_ns(struct mount *mnt)
fs/mount.h
224
bool has_locked_children(struct mount *mnt, struct dentry *dentry);
fs/mount.h
234
static inline void mnt_notify_add(struct mount *m)
fs/mount.h
244
static inline void mnt_notify_add(struct mount *m)
fs/mount.h
249
static inline struct mount *topmost_overmount(struct mount *m)
fs/mount.h
256
static inline bool __test_write_hold(struct mount * __aligned(1) *val)
fs/mount.h
261
static inline bool test_write_hold(const struct mount *m)
fs/mount.h
266
static inline void set_write_hold(struct mount *m)
fs/mount.h
272
static inline void clear_write_hold(struct mount *m)
fs/mount.h
48
struct mount *mnt_parent;
fs/mount.h
64
struct mount *mnt_next_for_sb; /* the next two fields are hlist_node, */
fs/mount.h
65
struct mount * __aligned(1) *mnt_pprev_for_sb;
fs/mount.h
74
struct mount *mnt_master; /* slave is on master->mnt_slave_list */
fs/namei.c
1467
struct mount *mnt = real_mount(path->mnt);
fs/namei.c
1468
struct mount *parent;
fs/namei.c
1488
static bool choose_mountpoint_rcu(struct mount *m, const struct path *root,
fs/namei.c
1508
static bool choose_mountpoint(struct mount *m, const struct path *root,
fs/namei.c
1708
struct mount *mounted = __lookup_mnt(path->mnt, dentry);
fs/namespace.c
1007
static void umount_mnt(struct mount *mnt)
fs/namespace.c
1015
void mnt_set_mountpoint(struct mount *mnt,
fs/namespace.c
1017
struct mount *child_mnt)
fs/namespace.c
1025
static void make_visible(struct mount *mnt)
fs/namespace.c
1027
struct mount *parent = mnt->mnt_parent;
fs/namespace.c
1051
static void attach_mnt(struct mount *mnt, struct mount *parent,
fs/namespace.c
1058
void mnt_change_mountpoint(struct mount *parent, struct mountpoint *mp, struct mount *mnt)
fs/namespace.c
1071
static inline struct mount *node_to_mount(struct rb_node *node)
fs/namespace.c
1073
return node ? rb_entry(node, struct mount, mnt_node) : NULL;
fs/namespace.c
1076
static void mnt_add_to_ns(struct mnt_namespace *ns, struct mount *mnt)
fs/namespace.c
1109
static struct mount *next_mnt(struct mount *p, struct mount *root)
fs/namespace.c
1122
return list_entry(next, struct mount, mnt_child);
fs/namespace.c
1125
static struct mount *skip_mnt_tree(struct mount *p)
fs/namespace.c
1129
p = list_entry(prev, struct mount, mnt_child);
fs/namespace.c
1138
static void commit_tree(struct mount *mnt)
fs/namespace.c
1143
for (struct mount *m = mnt; m; m = next_mnt(m, mnt))
fs/namespace.c
1153
static void setup_mnt(struct mount *m, struct dentry *root)
fs/namespace.c
1178
struct mount *mnt;
fs/namespace.c
1245
static struct mount *clone_mnt(struct mount *old, struct dentry *root,
fs/namespace.c
1248
struct mount *mnt;
fs/namespace.c
1297
static void cleanup_mnt(struct mount *mnt)
fs/namespace.c
1300
struct mount *m;
fs/namespace.c
1324
cleanup_mnt(container_of(head, struct mount, mnt_rcu));
fs/namespace.c
1331
struct mount *m, *t;
fs/namespace.c
1338
static void noinline mntput_no_expire_slowpath(struct mount *mnt)
fs/namespace.c
1371
struct mount *p, *tmp;
fs/namespace.c
1394
static void mntput_no_expire(struct mount *mnt)
fs/namespace.c
1417
struct mount *m = real_mount(mnt);
fs/namespace.c
1477
struct mount *p;
fs/namespace.c
1489
static struct mount *mnt_find_id_at(struct mnt_namespace *ns, u64 mnt_id)
fs/namespace.c
1492
struct mount *ret = NULL;
fs/namespace.c
1495
struct mount *m = node_to_mount(node);
fs/namespace.c
1513
static struct mount *mnt_find_id_at_reverse(struct mnt_namespace *ns, u64 mnt_id)
fs/namespace.c
1516
struct mount *ret = NULL;
fs/namespace.c
1519
struct mount *m = node_to_mount(node);
fs/namespace.c
1539
struct mount *mnt;
fs/namespace.c
1551
struct mount *mnt = v;
fs/namespace.c
1555
struct mount *next = node_to_mount(node);
fs/namespace.c
1576
struct mount *r = v;
fs/namespace.c
1599
struct mount *mnt = real_mount(m);
fs/namespace.c
1604
for (struct mount *p = mnt; p; p = next_mnt(p, mnt)) {
fs/namespace.c
1645
static void mnt_notify(struct mount *p)
fs/namespace.c
1662
struct mount *m, *tmp;
fs/namespace.c
1693
struct mount *m;
fs/namespace.c
1743
static bool disconnect_mount(struct mount *mnt, enum umount_tree_flags how)
fs/namespace.c
1776
static void umount_tree(struct mount *mnt, enum umount_tree_flags how)
fs/namespace.c
1779
struct mount *p;
fs/namespace.c
1806
p = list_first_entry(&tmp_list, struct mount, mnt_list);
fs/namespace.c
1845
static void shrink_submounts(struct mount *mnt);
fs/namespace.c
1870
static int do_umount(struct mount *mnt, int flags)
fs/namespace.c
1984
struct mount *mnt;
fs/namespace.c
1994
mnt = hlist_entry(mp.node.next, struct mount, mnt_mp_list);
fs/namespace.c
2023
struct mount *mnt = real_mount(path->mnt);
fs/namespace.c
2042
struct mount *mnt = real_mount(path->mnt);
fs/namespace.c
213
static int mnt_alloc_id(struct mount *mnt)
fs/namespace.c
2162
struct mount *copy_tree(struct mount *src_root, struct dentry *dentry,
fs/namespace.c
2165
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
2256
struct mount *root = real_mount(path->mnt);
fs/namespace.c
2257
struct mount *child;
fs/namespace.c
2271
for (struct mount *m = child; m; m = next_mnt(m, child)) {
fs/namespace.c
2299
struct mount *m = real_mount(mnt);
fs/namespace.c
2328
static bool __has_locked_children(struct mount *mnt, struct dentry *dentry)
fs/namespace.c
233
static int mnt_alloc_group_id(struct mount *mnt)
fs/namespace.c
2330
struct mount *child;
fs/namespace.c
2342
bool has_locked_children(struct mount *mnt, struct dentry *dentry)
fs/namespace.c
2356
static bool check_for_nsfs_mounts(struct mount *subtree)
fs/namespace.c
2358
for (struct mount *p = subtree; p; p = next_mnt(p, subtree))
fs/namespace.c
2378
struct mount *old_mnt = real_mount(path->mnt);
fs/namespace.c
2379
struct mount *new_mnt;
fs/namespace.c
2417
static void lock_mnt_tree(struct mount *mnt)
fs/namespace.c
2419
struct mount *p;
fs/namespace.c
2444
static void cleanup_group_ids(struct mount *mnt, struct mount *end)
fs/namespace.c
2446
struct mount *p;
fs/namespace.c
2454
static int invent_group_ids(struct mount *mnt, bool recurse)
fs/namespace.c
2456
struct mount *p;
fs/namespace.c
246
void mnt_release_group_id(struct mount *mnt)
fs/namespace.c
2471
int count_mounts(struct mnt_namespace *ns, struct mount *mnt)
fs/namespace.c
2475
struct mount *p;
fs/namespace.c
255
static inline void mnt_add_count(struct mount *mnt, int n)
fs/namespace.c
2564
static int attach_recursive_mnt(struct mount *source_mnt,
fs/namespace.c
2568
struct mount *dest_mnt = dest->parent;
fs/namespace.c
2574
struct mount *child, *p;
fs/namespace.c
2575
struct mount *top;
fs/namespace.c
2640
struct mount *q;
fs/namespace.c
2649
struct mount *r = topmost_overmount(child);
fs/namespace.c
2677
child = hlist_entry(tree_list.first, struct mount, mnt_hash);
fs/namespace.c
269
int mnt_get_count(struct mount *mnt)
fs/namespace.c
2693
static inline struct mount *where_to_mount(const struct path *path,
fs/namespace.c
2697
struct mount *m;
fs/namespace.c
2758
struct mount *m, *n;
fs/namespace.c
2836
static int graft_tree(struct mount *mnt, const struct pinned_mountpoint *mp)
fs/namespace.c
2848
static int may_change_propagation(const struct mount *m)
fs/namespace.c
285
static struct mount *alloc_vfsmnt(const char *name)
fs/namespace.c
287
struct mount *mnt = kmem_cache_zalloc(mnt_cache, GFP_KERNEL);
fs/namespace.c
2883
struct mount *m;
fs/namespace.c
2884
struct mount *mnt = real_mount(path->mnt);
fs/namespace.c
2959
struct mount *mnt = real_mount(path->mnt);
fs/namespace.c
2978
static struct mount *__do_loopback(const struct path *old_path,
fs/namespace.c
2981
struct mount *old = real_mount(old_path->mnt);
fs/namespace.c
3005
struct mount *mnt = NULL;
fs/namespace.c
3041
struct mount *mnt, *p;
fs/namespace.c
3105
struct mount *new_ns_root, *old_ns_root;
fs/namespace.c
3107
struct mount *mnt;
fs/namespace.c
3256
static bool can_change_locked_flags(struct mount *mnt, unsigned int mnt_flags)
fs/namespace.c
3283
static int change_mount_ro_state(struct mount *mnt, unsigned int mnt_flags)
fs/namespace.c
3297
static void set_mount_attributes(struct mount *mnt, unsigned int mnt_flags)
fs/namespace.c
3341
struct mount *mnt = real_mount(path->mnt);
fs/namespace.c
3380
struct mount *mnt = real_mount(path->mnt);
fs/namespace.c
3423
static inline int tree_contains_unbindable(struct mount *mnt)
fs/namespace.c
3425
struct mount *p;
fs/namespace.c
3435
struct mount *from = real_mount(from_path->mnt);
fs/namespace.c
3436
struct mount *to = real_mount(to_path->mnt);
fs/namespace.c
3519
static bool mount_is_ancestor(const struct mount *p1, const struct mount *p2)
fs/namespace.c
3543
static int can_move_mount_beneath(const struct mount *mnt_from,
fs/namespace.c
3544
const struct mount *mnt_to,
fs/namespace.c
3547
struct mount *parent_mnt_to = mnt_to->mnt_parent;
fs/namespace.c
3616
static inline bool may_use_mount(struct mount *mnt)
fs/namespace.c
3636
struct mount *old = real_mount(old_path->mnt);
fs/namespace.c
366
static inline void mnt_inc_writers(struct mount *mnt)
fs/namespace.c
3683
struct mount *over = real_mount(new_path->mnt);
fs/namespace.c
3724
static int do_add_mount(struct mount *newmnt, const struct pinned_mountpoint *mp,
fs/namespace.c
3727
struct mount *parent = mp->parent;
fs/namespace.c
375
static inline void mnt_dec_writers(struct mount *mnt)
fs/namespace.c
384
static unsigned int mnt_get_writers(struct mount *mnt)
fs/namespace.c
3883
struct mount *mnt;
fs/namespace.c
3930
struct mount *mnt, *next;
fs/namespace.c
3955
mnt = list_first_entry(&graveyard, struct mount, mnt_expire);
fs/namespace.c
3969
static int select_submounts(struct mount *parent, struct list_head *graveyard)
fs/namespace.c
3971
struct mount *this_parent = parent;
fs/namespace.c
3980
struct mount *mnt = list_entry(tmp, struct mount, mnt_child);
fs/namespace.c
4015
static void shrink_submounts(struct mount *mnt)
fs/namespace.c
4018
struct mount *m;
fs/namespace.c
4023
m = list_first_entry(&graveyard, struct mount,
fs/namespace.c
4238
struct mount *p, *q;
fs/namespace.c
4239
struct mount *old;
fs/namespace.c
4240
struct mount *new;
fs/namespace.c
4333
struct mount *mnt = real_mount(m);
fs/namespace.c
434
struct mount *mnt = real_mount(m);
fs/namespace.c
4367
SYSCALL_DEFINE5(mount, char __user *, dev_name, char __user *, dir_name,
fs/namespace.c
4442
struct mount *mnt;
fs/namespace.c
4654
bool is_path_reachable(struct mount *mnt, struct dentry *dentry,
fs/namespace.c
4674
struct mount *new_mnt, *root_mnt, *old_mnt, *root_parent, *ex_parent;
fs/namespace.c
4787
static unsigned int recalc_flags(struct mount_kattr *kattr, struct mount *mnt)
fs/namespace.c
4799
static int can_idmap_mount(const struct mount_kattr *kattr, struct mount *mnt)
fs/namespace.c
4850
const struct mount *mnt)
fs/namespace.c
4857
static int mount_setattr_prepare(struct mount_kattr *kattr, struct mount *mnt)
fs/namespace.c
4859
struct mount *m;
fs/namespace.c
4886
for (struct mount *p = mnt; p != m; p = next_mnt(p, mnt))
fs/namespace.c
4892
static void do_idmap_mount(const struct mount_kattr *kattr, struct mount *mnt)
fs/namespace.c
4906
static void mount_setattr_commit(struct mount_kattr *kattr, struct mount *mnt)
fs/namespace.c
4908
struct mount *m;
fs/namespace.c
4930
struct mount *mnt = real_mount(path->mnt);
fs/namespace.c
5230
struct mount *mnt = mnt_find_id_at(ns, id);
fs/namespace.c
5282
static u64 mnt_to_propagation_flags(struct mount *m)
fs/namespace.c
5317
struct mount *m = real_mount(s->mnt);
fs/namespace.c
5332
struct mount *m = real_mount(s->mnt);
fs/namespace.c
5390
struct mount *r = real_mount(s->mnt);
fs/namespace.c
5662
static struct mount *listmnt_next(struct mount *curr, bool reverse)
fs/namespace.c
5676
struct mount *first, *child;
fs/namespace.c
5760
struct mount *m;
fs/namespace.c
6034
struct mount *r, *first;
fs/namespace.c
608
static inline int mnt_hold_writers(struct mount *mnt)
fs/namespace.c
6183
struct mount *mnt_root;
fs/namespace.c
6227
for (struct mount *p = mnt_root; p; p = next_mnt(p, mnt_root)) {
fs/namespace.c
6248
mnt_cache = kmem_cache_create("mnt_cache", sizeof(struct mount),
fs/namespace.c
6336
struct mount *root;
fs/namespace.c
6354
struct mount *mnt;
fs/namespace.c
6363
struct mount *child;
fs/namespace.c
651
static inline void mnt_unhold_writers(struct mount *mnt)
fs/namespace.c
663
static inline void mnt_del_instance(struct mount *m)
fs/namespace.c
665
struct mount **p = m->mnt_pprev_for_sb;
fs/namespace.c
666
struct mount *next = m->mnt_next_for_sb;
fs/namespace.c
673
static inline void mnt_add_instance(struct mount *m, struct super_block *s)
fs/namespace.c
675
struct mount *first = s->s_mounts;
fs/namespace.c
684
static int mnt_make_readonly(struct mount *mnt)
fs/namespace.c
705
for (struct mount *m = sb->s_mounts; m; m = m->mnt_next_for_sb) {
fs/namespace.c
717
for (struct mount *m = sb->s_mounts; m; m = m->mnt_next_for_sb) {
fs/namespace.c
725
static void free_vfsmnt(struct mount *mnt)
fs/namespace.c
737
free_vfsmnt(container_of(head, struct mount, mnt_rcu));
fs/namespace.c
743
struct mount *mnt;
fs/namespace.c
790
struct mount *__lookup_mnt(struct vfsmount *mnt, struct dentry *dentry)
fs/namespace.c
793
struct mount *p;
fs/namespace.c
810
struct mount *child_mnt;
fs/namespace.c
842
struct mount *mnt, *n;
fs/namespace.c
856
struct mount *parent;
fs/namespace.c
947
static inline int check_mnt(const struct mount *mnt)
fs/namespace.c
952
static inline bool check_anonymous_mnt(struct mount *mnt)
fs/namespace.c
988
static void __umount_mnt(struct mount *mnt, struct list_head *shrink_list)
fs/namespace.c
991
struct mount *parent = mnt->mnt_parent;
fs/notify/fdinfo.c
121
struct mount *mnt = fsnotify_conn_mount(mark->connector);
fs/notify/fsnotify.c
503
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
3291
extern int simple_pin_fs(struct file_system_type *, struct vfsmount **mount, int *count);
include/linux/fs.h
3292
extern void simple_release_fs(struct vfsmount **mount, int *count);
include/linux/fs/super_types.h
167
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
2666
struct vfsmount *mount = NULL;
security/apparmor/apparmorfs.c
2670
int error = simple_pin_fs(parent->d_sb->s_type, &mount, &count);
security/apparmor/apparmorfs.c
2693
aa_null.mnt = mntget(mount);
security/apparmor/apparmorfs.c
2697
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
266
char *fs, *mount, *type, *options;
tools/testing/selftests/cgroup/lib/cgroup_util.c
277
mount = strtok(NULL, delim);
tools/testing/selftests/cgroup/lib/cgroup_util.c
287
cg_read_strstr(mount, "cgroup.controllers", controller))
tools/testing/selftests/cgroup/lib/cgroup_util.c
292
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
208
ret = mount("devpts", mntpoint, "devpts", MS_NOSUID | MS_NOEXEC,
tools/testing/selftests/filesystems/devpts_pts.c
236
ret = mount("/dev/pts/ptmx", "/dev/ptmx", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/devpts_pts.c
263
ret = mount("/dev/pts/ptmx", ptmx, NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/devpts_pts.c
294
ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
tools/testing/selftests/filesystems/empty_mntns/clone3_empty_mntns_test.c
426
if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL))
tools/testing/selftests/filesystems/empty_mntns/clone3_empty_mntns_test.c
432
if (mount("tmpfs", tmpdir, "tmpfs", 0, "size=1M"))
tools/testing/selftests/filesystems/empty_mntns/clone3_empty_mntns_test.c
441
if (mount(subdir, subdir, NULL, MS_BIND, NULL))
tools/testing/selftests/filesystems/empty_mntns/empty_mntns_test.c
210
if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL))
tools/testing/selftests/filesystems/empty_mntns/empty_mntns_test.c
216
if (mount("tmpfs", tmpdir, "tmpfs", 0, "size=1M"))
tools/testing/selftests/filesystems/empty_mntns/empty_mntns_test.c
225
if (mount(subdir, subdir, NULL, MS_BIND, NULL))
tools/testing/selftests/filesystems/empty_mntns/empty_mntns_test.c
263
if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL))
tools/testing/selftests/filesystems/empty_mntns/empty_mntns_test.c
269
if (mount("tmpfs", tmpdir, "tmpfs", 0, "size=1M"))
tools/testing/selftests/filesystems/empty_mntns/empty_mntns_test.c
657
if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL))
tools/testing/selftests/filesystems/empty_mntns/empty_mntns_test.c
663
if (mount("tmpfs", tmpdir, "tmpfs", 0, "size=1M"))
tools/testing/selftests/filesystems/empty_mntns/empty_mntns_test.c
672
if (mount(subdir, subdir, NULL, MS_BIND, NULL))
tools/testing/selftests/filesystems/empty_mntns/overmount_chroot_test.c
112
if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL))
tools/testing/selftests/filesystems/empty_mntns/overmount_chroot_test.c
124
if (mount("tmpfs", "/newroot", "tmpfs", 0, "size=1M"))
tools/testing/selftests/filesystems/empty_mntns/overmount_chroot_test.c
144
if (mount("tmpfs", "/newroot", "tmpfs", 0, "size=1M"))
tools/testing/selftests/filesystems/empty_mntns/overmount_chroot_test.c
52
if (mount("tmpfs", tmpdir, "tmpfs", 0, "size=10M"))
tools/testing/selftests/filesystems/fclog.c
40
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/move_mount/move_mount_test.c
119
ASSERT_EQ(mount("", "/", NULL, MS_REC | MS_PRIVATE, NULL), 0);
tools/testing/selftests/filesystems/move_mount/move_mount_test.c
259
ASSERT_EQ(mount("tmpfs", "/chroot_dir", "tmpfs", 0, NULL), 0);
tools/testing/selftests/filesystems/move_mount/move_mount_test.c
310
ASSERT_EQ(mount("", "/", NULL, MS_REC | MS_PRIVATE, NULL), 0);
tools/testing/selftests/filesystems/move_mount/move_mount_test.c
359
ASSERT_EQ(mount("", "/", NULL, MS_REC | MS_PRIVATE, NULL), 0);
tools/testing/selftests/filesystems/move_mount/move_mount_test.c
55
if (mount("", "/", NULL, MS_REC | MS_PRIVATE, NULL))
tools/testing/selftests/filesystems/move_mount/move_mount_test.c
68
if (mount("tmpfs", "/mnt_dir", "tmpfs", 0, NULL))
tools/testing/selftests/filesystems/move_mount/move_mount_test.c
72
if (mount("tmpfs", "/mnt_dir", "tmpfs", 0, NULL))
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
925
ret = mount("tmpfs", self->tmpdir, "tmpfs", 0, NULL);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
932
ret = mount(NULL, self->tmpdir, NULL, MS_UNBINDABLE, NULL);
tools/testing/selftests/filesystems/openat2/resolve_test.c
145
ASSERT_EQ(mount("", "/tmp", "", MS_PRIVATE, ""), 0);
tools/testing/selftests/filesystems/openat2/resolve_test.c
166
ASSERT_EQ(mount("tmpfs", "./mnt", "tmpfs", MS_NOSUID | MS_NODEV, ""), 0);
tools/testing/selftests/filesystems/statmount/statmount_test.c
120
ret = mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL);
tools/testing/selftests/filesystems/statmount/statmount_test.c
139
ret = mount(root_mntpoint, root_mntpoint, NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/statmount/statmount_test.c
161
ret = mount("", "/", NULL, MS_REC|MS_SHARED, NULL);
tools/testing/selftests/filesystems/statmount/statmount_test.c
169
ret = mount("/", "/", NULL, MS_BIND, NULL);
tools/testing/selftests/filesystems/statmount/statmount_test.c
644
if (mount("statmount.test", tmpdir, "tmpfs", 0, NULL)) {
tools/testing/selftests/filesystems/statmount/statmount_test.c
658
if (mount(subdir, subdir, NULL, MS_BIND, 0)) {
tools/testing/selftests/filesystems/statmount/statmount_test.c
779
if (mount("statmount.test", tmpdir, "tmpfs", 0, NULL)) {
tools/testing/selftests/filesystems/statmount/statmount_test.c
792
if (mount(subdir, subdir, 0, MS_BIND, NULL)) {
tools/testing/selftests/filesystems/statmount/statmount_test_ns.c
122
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
18
if (mount("debugfs", "/debugfs", "debugfs", 0, NULL) < 0)
tools/testing/selftests/kho/init.c
21
return mount("proc", "/proc", "proc", 0, NULL);
tools/testing/selftests/landlock/fs_test.c
1618
ASSERT_EQ(-1, mount(NULL, dir_s3d2, NULL, MS_RDONLY, NULL));
tools/testing/selftests/landlock/fs_test.c
1668
ASSERT_EQ(0, mount(NULL, dir_s1d2, NULL, MS_PRIVATE | MS_REC, NULL));
tools/testing/selftests/landlock/fs_test.c
1692
ASSERT_EQ(-1, mount(NULL, dir_s3d2, NULL, MS_PRIVATE | MS_REC, NULL));
tools/testing/selftests/landlock/fs_test.c
291
return mount(mnt->source ?: mnt->type, target, mnt->type, mnt->flags,
tools/testing/selftests/landlock/fs_test.c
320
ASSERT_EQ(0, mount(NULL, TMP_DIR, NULL, MS_PRIVATE | MS_REC, NULL));
tools/testing/selftests/landlock/fs_test.c
4811
ASSERT_EQ(0, mount(dir_s1d2, dir_s2d2, NULL, MS_BIND, NULL));
tools/testing/selftests/landlock/fs_test.c
5475
ASSERT_EQ(0, mount(TMP_DIR "/s1d1/s1d2", TMP_DIR "/s2d1/s2d2", NULL,
tools/testing/selftests/landlock/fs_test.c
6036
ASSERT_EQ(0, mount(TMP_DIR "/s1d1/s1d2", TMP_DIR "/s2d1/s2d2/s2d3/s2d4",
tools/testing/selftests/landlock/fs_test.c
6038
ASSERT_EQ(0, mount(TMP_DIR "/s2d1/s2d2", TMP_DIR "/s3d1/s3d2", NULL,
tools/testing/selftests/landlock/fs_test.c
6617
ASSERT_EQ(0, mount("overlay", MERGE_DATA, "overlay", 0,
tools/testing/selftests/landlock/fs_test.c
7752
TEST_F(audit_layout1, mount)
tools/testing/selftests/landlock/fs_test.c
7759
EXPECT_EQ(-1, mount(NULL, dir_s3d2, NULL, MS_RDONLY, NULL));
tools/testing/selftests/landlock/fs_test.c
9356
ASSERT_EQ(0, mount(dir_s1d2, dir_s2d2, NULL, MS_BIND, NULL));
tools/testing/selftests/mm/split_huge_page_test.c
498
status = mount("tmpfs", tmpfs_loc, "tmpfs", 0, opts);
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
335
if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0))
tools/testing/selftests/namespaces/listns_efault_test.c
344
if (mount("tmpfs", "/tmp/test_mnt1", "tmpfs", 0, NULL) == -1)
tools/testing/selftests/namespaces/listns_efault_test.c
346
if (mount("tmpfs", "/tmp/test_mnt2", "tmpfs", 0, NULL) == -1)
tools/testing/selftests/namespaces/listns_efault_test.c
484
if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0))
tools/testing/selftests/namespaces/listns_efault_test.c
493
if (mount("tmpfs", "/tmp/test_mnt1", "tmpfs", 0, NULL) == -1)
tools/testing/selftests/namespaces/listns_efault_test.c
495
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
2245
if (mount("/dev", "/dev", "devtmpfs", 0, 0) != 0) {
tools/testing/selftests/nolibc/nolibc-test.c
2278
if (mount("none", "/proc", "proc", 0, 0) != 0)
tools/testing/selftests/pid_namespace/pid_max.c
107
ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
tools/testing/selftests/pid_namespace/pid_max.c
115
ret = mount("proc", "/proc", "proc", 0, NULL);
tools/testing/selftests/pid_namespace/pid_max.c
153
ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
tools/testing/selftests/pid_namespace/pid_max.c
161
ret = mount("proc", "/proc", "proc", 0, NULL);
tools/testing/selftests/pid_namespace/pid_max.c
232
ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
tools/testing/selftests/pid_namespace/pid_max.c
240
ret = mount("proc", "/proc", "proc", 0, NULL);
tools/testing/selftests/pid_namespace/pid_max.c
308
ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
tools/testing/selftests/pid_namespace/pid_max.c
316
ret = mount("proc", "/proc", "proc", 0, NULL);
tools/testing/selftests/pid_namespace/pid_max.c
367
ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
tools/testing/selftests/pid_namespace/pid_max.c
375
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))