/Linux-v5.15/fs/ |
D | pnode.h | 13 #define IS_MNT_SHARED(m) ((m)->mnt.mnt_flags & MNT_SHARED) 16 #define CLEAR_MNT_SHARED(m) ((m)->mnt.mnt_flags &= ~MNT_SHARED) 17 #define IS_MNT_UNBINDABLE(m) ((m)->mnt.mnt_flags & MNT_UNBINDABLE) 18 #define IS_MNT_MARKED(m) ((m)->mnt.mnt_flags & MNT_MARKED) 19 #define SET_MNT_MARK(m) ((m)->mnt.mnt_flags |= MNT_MARKED) 20 #define CLEAR_MNT_MARK(m) ((m)->mnt.mnt_flags &= ~MNT_MARKED) 21 #define IS_MNT_LOCKED(m) ((m)->mnt.mnt_flags & MNT_LOCKED) 35 mnt->mnt.mnt_flags &= ~MNT_SHARED_MASK; in set_mnt_shared() 36 mnt->mnt.mnt_flags |= MNT_SHARED; in set_mnt_shared()
|
D | namespace.c | 270 return (mnt->mnt_flags & MNT_READONLY) || sb_rdonly(mnt->mnt_sb); in __mnt_is_readonly() 346 while (READ_ONCE(mnt->mnt.mnt_flags) & MNT_WRITE_HOLD) in __mnt_want_write() 473 mnt->mnt.mnt_flags |= MNT_WRITE_HOLD; in mnt_hold_writers() 509 mnt->mnt.mnt_flags &= ~MNT_WRITE_HOLD; in mnt_unhold_writers() 518 mnt->mnt.mnt_flags |= MNT_READONLY; in mnt_make_readonly() 534 if (!(mnt->mnt.mnt_flags & MNT_READONLY)) { in sb_prepare_remount_readonly() 535 mnt->mnt.mnt_flags |= MNT_WRITE_HOLD; in sb_prepare_remount_readonly() 551 if (mnt->mnt.mnt_flags & MNT_WRITE_HOLD) in sb_prepare_remount_readonly() 552 mnt->mnt.mnt_flags &= ~MNT_WRITE_HOLD; in sb_prepare_remount_readonly() 591 if (bastard->mnt_flags & MNT_SYNC_UMOUNT) { in __legitimize_mnt() [all …]
|
D | statfs.c | 14 static int flags_by_mnt(int mnt_flags) in flags_by_mnt() argument 18 if (mnt_flags & MNT_READONLY) in flags_by_mnt() 20 if (mnt_flags & MNT_NOSUID) in flags_by_mnt() 22 if (mnt_flags & MNT_NODEV) in flags_by_mnt() 24 if (mnt_flags & MNT_NOEXEC) in flags_by_mnt() 26 if (mnt_flags & MNT_NOATIME) in flags_by_mnt() 28 if (mnt_flags & MNT_NODIRATIME) in flags_by_mnt() 30 if (mnt_flags & MNT_RELATIME) in flags_by_mnt() 32 if (mnt_flags & MNT_NOSYMFOLLOW) in flags_by_mnt() 51 return ST_VALID | flags_by_mnt(mnt->mnt_flags) | in calculate_f_flags()
|
D | pnode.c | 133 mnt->mnt.mnt_flags |= MNT_UNBINDABLE; in change_mnt_propagation() 135 mnt->mnt.mnt_flags &= ~MNT_UNBINDABLE; in change_mnt_propagation() 423 child->mnt.mnt_flags &= ~MNT_LOCKED; in propagate_mount_unlock() 430 mnt->mnt.mnt_flags |= MNT_UMOUNT; in umount_one() 451 if (mnt->mnt.mnt_flags & (MNT_UMOUNT | MNT_MARKED)) in __propagate_umount() 510 while (parent->mnt.mnt_flags & MNT_UMOUNT) { in restore_mounts() 574 } else if (child->mnt.mnt_flags & MNT_UMOUNT) { in propagate_umount()
|
D | proc_namespace.c | 79 if (mnt->mnt_flags & fs_infop->flag) in show_mnt_opts() 159 seq_puts(m, mnt->mnt_flags & MNT_READONLY ? " ro" : " rw"); in show_mountinfo() 287 p->cursor.mnt.mnt_flags = MNT_CURSOR; in mounts_open_common()
|
D | mount.h | 108 return m && likely(!(m->mnt.mnt_flags & MNT_SYNC_UMOUNT)); in __path_is_mountpoint()
|
D | inode.c | 1730 if (!(mnt->mnt_flags & MNT_RELATIME)) in relatime_need_update() 1820 if (mnt->mnt_flags & MNT_NOATIME) in atime_needs_update() 1822 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) in atime_needs_update()
|
D | exec.c | 111 return (path->mnt->mnt_flags & MNT_NOEXEC) || in path_noexec()
|
D | namei.c | 1742 unlikely(link->mnt->mnt_flags & MNT_NOSYMFOLLOW)) in pick_link() 3011 return !(path->mnt->mnt_flags & MNT_NODEV) && in may_open_dev()
|
/Linux-v5.15/tools/testing/selftests/mount/ |
D | unprivileged-remount-test.c | 119 int mnt_flags; in read_mnt_flags() local 131 mnt_flags = 0; in read_mnt_flags() 133 mnt_flags |= MS_RDONLY; in read_mnt_flags() 135 mnt_flags |= MS_NOSUID; in read_mnt_flags() 137 mnt_flags |= MS_NODEV; in read_mnt_flags() 139 mnt_flags |= MS_NOEXEC; in read_mnt_flags() 141 mnt_flags |= MS_NOATIME; in read_mnt_flags() 143 mnt_flags |= MS_NODIRATIME; in read_mnt_flags() 145 mnt_flags |= MS_RELATIME; in read_mnt_flags() 147 mnt_flags |= MS_SYNCHRONOUS; in read_mnt_flags() [all …]
|
/Linux-v5.15/tools/testing/selftests/mount_setattr/ |
D | mount_setattr_test.c | 250 unsigned int mnt_flags; in read_mnt_flags() local 261 mnt_flags = 0; in read_mnt_flags() 263 mnt_flags |= MS_RDONLY; in read_mnt_flags() 265 mnt_flags |= MS_NOSUID; in read_mnt_flags() 267 mnt_flags |= MS_NODEV; in read_mnt_flags() 269 mnt_flags |= MS_NOEXEC; in read_mnt_flags() 271 mnt_flags |= MS_NOATIME; in read_mnt_flags() 273 mnt_flags |= MS_NODIRATIME; in read_mnt_flags() 275 mnt_flags |= MS_RELATIME; in read_mnt_flags() 277 mnt_flags |= MS_SYNCHRONOUS; in read_mnt_flags() [all …]
|
/Linux-v5.15/include/linux/ |
D | mount.h | 74 int mnt_flags; member
|
/Linux-v5.15/security/apparmor/ |
D | path.c | 97 if (path->mnt->mnt_flags & MNT_INTERNAL) { in d_namespace_path()
|
/Linux-v5.15/mm/ |
D | secretmem.c | 253 secretmem_mnt->mnt_flags |= MNT_NOEXEC; in secretmem_init()
|
/Linux-v5.15/security/landlock/ |
D | syscalls.c | 260 (f.file->f_path.mnt->mnt_flags & MNT_INTERNAL) || in get_path_from_fd()
|
D | fs.c | 299 allowed = !!(walker_path.mnt->mnt_flags & MNT_INTERNAL); in check_access_path()
|
/Linux-v5.15/fs/ocfs2/ |
D | file.c | 230 if ((vfsmnt->mnt_flags & MNT_NOATIME) || in ocfs2_should_update_atime() 231 ((vfsmnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) in ocfs2_should_update_atime() 234 if (vfsmnt->mnt_flags & MNT_RELATIME) { in ocfs2_should_update_atime()
|
/Linux-v5.15/fs/overlayfs/ |
D | super.c | 1221 upper_mnt->mnt_flags &= ~(MNT_NOATIME | MNT_NODIRATIME | MNT_RELATIME); in ovl_get_upper() 1741 mnt->mnt_flags |= MNT_READONLY | MNT_NOATIME; in ovl_get_layers()
|
/Linux-v5.15/fs/nfs/ |
D | inode.c | 854 if ((path->mnt->mnt_flags & MNT_NOATIME) || in nfs_getattr() 855 ((path->mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) in nfs_getattr()
|
/Linux-v5.15/Documentation/filesystems/ |
D | sharedsubtree.rst | 870 ->mnt_flags 939 Normally we have ->mnt_flags modifications serialized by vfsmount_lock.
|
D | mount_api.rst | 393 unsigned int mnt_flags);
|
/Linux-v5.15/security/selinux/ |
D | hooks.c | 620 char mnt_flags = sbsec->flags & SE_MNTMASK; in bad_option() local 632 if (mnt_flags & flag) in bad_option()
|