Lines Matching defs:int

38 unsigned int sysctl_mount_max __read_mostly = 100000;
40 static unsigned int m_hash_mask __read_mostly;
41 static unsigned int m_hash_shift __read_mostly;
42 static unsigned int mp_hash_mask __read_mostly;
43 static unsigned int mp_hash_shift __read_mostly;
46 static int __init set_mhash_entries(char *str)
56 static int __init set_mphash_entries(char *str)
105 static int mnt_alloc_id(struct mount *mnt)
107 int res = ida_alloc(&mnt_id_ida, GFP_KERNEL);
123 static int mnt_alloc_group_id(struct mount *mnt)
125 int res = ida_alloc_min(&mnt_group_ida, 1, GFP_KERNEL);
145 static inline void mnt_add_count(struct mount *mnt, int n)
159 int mnt_get_count(struct mount *mnt)
162 int count = 0;
163 int cpu;
179 int err;
271 static unsigned int mnt_get_writers(struct mount *mnt)
274 unsigned int count = 0;
275 int cpu;
287 static int mnt_is_readonly(struct vfsmount *mnt)
312 int __mnt_want_write(struct vfsmount *m)
315 int ret = 0;
351 int mnt_want_write(struct vfsmount *m)
353 int ret;
375 int mnt_clone_write(struct vfsmount *mnt)
394 int __mnt_want_write_file(struct file *file)
409 int mnt_want_write_file(struct file *file)
411 int ret;
463 static int mnt_make_readonly(struct mount *mnt)
465 int ret = 0;
505 static int __mnt_unmake_readonly(struct mount *mnt)
513 int sb_prepare_remount_readonly(struct super_block *sb)
516 int err = 0;
564 int __legitimize_mnt(struct vfsmount *bastard, unsigned seq)
594 int res = __legitimize_mnt(bastard, seq);
720 int ret;
791 static inline int check_mnt(struct mount *mnt)
979 int err = vfs_get_tree(fc);
989 int flags, const char *name,
994 int ret = 0;
1034 int flag)
1038 int err;
1143 int count;
1329 static int m_show(struct seq_file *m, void *v)
1361 int may_umount_tree(struct vfsmount *m)
1364 int actual_refs = 0;
1365 int minimum_refs = 0;
1398 int may_umount(struct vfsmount *mnt)
1400 int ret = 1;
1537 static int do_umount_root(struct super_block *sb)
1539 int ret = 0;
1560 static int do_umount(struct mount *mnt, int flags)
1563 int retval;
1717 static int can_umount(const struct path *path, int flags)
1735 int path_umount(struct path *path, int flags)
1738 int ret;
1750 static int ksys_umount(char __user *name, int flags)
1752 int lookup_flags = LOOKUP_MOUNTPOINT;
1754 int ret;
1768 SYSCALL_DEFINE2(umount, char __user *, name, int, flags)
1816 int flag)
1982 int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
1986 int res = f(root, arg);
2002 int flags = p->mnt.mnt_flags;
2034 static int invent_group_ids(struct mount *mnt, bool recurse)
2040 int err = mnt_alloc_group_id(p);
2051 int count_mounts(struct mnt_namespace *ns, struct mount *mnt)
2053 unsigned int max = READ_ONCE(sysctl_mount_max);
2054 unsigned int mounts = 0, old, pending, sum;
2136 static int attach_recursive_mnt(struct mount *source_mnt,
2147 int err;
2266 static int graft_tree(struct mount *mnt, struct mount *p, struct mountpoint *mp)
2282 static int flags_to_propagation_type(int ms_flags)
2284 int type = ms_flags & ~(MS_REC | MS_SILENT);
2298 static int do_change_type(struct path *path, int ms_flags)
2302 int recurse = ms_flags & MS_REC;
2303 int type;
2304 int err = 0;
2330 static struct mount *__do_loopback(struct path *old_path, int recurse)
2357 static int do_loopback(struct path *path, const char *old_name,
2358 int recurse)
2363 int err;
2442 SYSCALL_DEFINE3(open_tree, int, dfd, const char __user *, filename, unsigned, flags)
2446 int lookup_flags = LOOKUP_AUTOMOUNT | LOOKUP_FOLLOW;
2448 int error;
2449 int fd;
2499 static bool can_change_locked_flags(struct mount *mnt, unsigned int mnt_flags)
2501 unsigned int fl = mnt->mnt.mnt_flags;
2526 static int change_mount_ro_state(struct mount *mnt, unsigned int mnt_flags)
2543 static void set_mount_attributes(struct mount *mnt, unsigned int mnt_flags)
2579 static int do_reconfigure_mnt(struct path *path, unsigned int mnt_flags)
2583 int ret;
2610 static int do_remount(struct path *path, int ms_flags, int sb_flags,
2611 int mnt_flags, void *data)
2613 int err;
2655 static inline int tree_contains_unbindable(struct mount *mnt)
2687 static int do_move_mount(struct path *old_path, struct path *new_path)
2694 int err;
2769 static int do_move_mount_old(struct path *path, const char *old_name)
2772 int err;
2789 static int do_add_mount(struct mount *newmnt, struct mountpoint *mp,
2790 struct path *path, int mnt_flags)
2817 static bool mount_too_revealing(const struct super_block *sb, int *new_mnt_flags);
2823 static int do_new_mount_fc(struct fs_context *fc, struct path *mountpoint,
2824 unsigned int mnt_flags)
2829 int error;
2864 static int do_new_mount(struct path *path, const char *fstype, int sb_flags,
2865 int mnt_flags, const char *name, void *data)
2870 int err = 0;
2919 int finish_automount(struct vfsmount *m, struct path *path)
2924 int err;
3049 static int select_submounts(struct mount *parent, struct list_head *graveyard)
3053 int found = 0;
3166 int path_mount(const char *dev_name, struct path *path,
3169 unsigned int mnt_flags = 0, sb_flags;
3170 int ret;
3249 int ret;
3291 int ret;
3331 int copy_flags;
3408 int err;
3442 int ret;
3477 SYSCALL_DEFINE3(fsmount, int, fs_fd, unsigned int, flags,
3478 unsigned int, attr_flags)
3486 unsigned int mnt_flags = 0;
3622 int, from_dfd, const char __user *, from_pathname,
3623 int, to_dfd, const char __user *, to_pathname,
3624 unsigned int, flags)
3627 unsigned int lflags;
3628 int ret = 0;
3727 int error;
3852 int err;
3919 void kern_unmount_array(struct vfsmount *mnt[], unsigned int num)
3921 unsigned int i;
3963 int *new_mnt_flags)
3965 int new_flags = *new_mnt_flags;
3973 int mnt_flags;
4030 static bool mount_too_revealing(const struct super_block *sb, int *new_mnt_flags)
4087 static int mntns_install(struct nsset *nsset, struct ns_common *ns)
4094 int err;