Home
last modified time | relevance | path

Searched refs:mnt_flags (Results 1 – 22 of 22) sorted by relevance

/linux-6.6.21/fs/
Dpnode.h13 #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()
Dnamespace.c272 return (mnt->mnt_flags & MNT_READONLY) || sb_rdonly(mnt->mnt_sb); in __mnt_is_readonly()
356 while (READ_ONCE(mnt->mnt.mnt_flags) & MNT_WRITE_HOLD) { in __mnt_want_write()
518 mnt->mnt.mnt_flags |= MNT_WRITE_HOLD; in mnt_hold_writers()
566 mnt->mnt.mnt_flags &= ~MNT_WRITE_HOLD; in mnt_unhold_writers()
575 mnt->mnt.mnt_flags |= MNT_READONLY; in mnt_make_readonly()
591 if (!(mnt->mnt.mnt_flags & MNT_READONLY)) { in sb_prepare_remount_readonly()
603 if (mnt->mnt.mnt_flags & MNT_WRITE_HOLD) in sb_prepare_remount_readonly()
604 mnt->mnt.mnt_flags &= ~MNT_WRITE_HOLD; in sb_prepare_remount_readonly()
639 if (bastard->mnt_flags & MNT_SYNC_UMOUNT) { in __legitimize_mnt()
644 if (unlikely(bastard->mnt_flags & MNT_DOOMED)) { in __legitimize_mnt()
[all …]
Dstatfs.c14 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()
Dpnode.c133 mnt->mnt.mnt_flags |= MNT_UNBINDABLE; in change_mnt_propagation()
135 mnt->mnt.mnt_flags &= ~MNT_UNBINDABLE; in change_mnt_propagation()
461 child->mnt.mnt_flags &= ~MNT_LOCKED; in propagate_mount_unlock()
468 mnt->mnt.mnt_flags |= MNT_UMOUNT; in umount_one()
489 if (mnt->mnt.mnt_flags & (MNT_UMOUNT | MNT_MARKED)) in __propagate_umount()
548 while (parent->mnt.mnt_flags & MNT_UMOUNT) { in restore_mounts()
612 } else if (child->mnt.mnt_flags & MNT_UMOUNT) { in propagate_umount()
Dproc_namespace.c79 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()
Dmount.h107 return m && likely(!(m->mnt.mnt_flags & MNT_SYNC_UMOUNT)); in __path_is_mountpoint()
Dinode.c1844 if (!(mnt->mnt_flags & MNT_RELATIME)) in relatime_need_update()
1984 if (mnt->mnt_flags & MNT_NOATIME) in atime_needs_update()
1986 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) in atime_needs_update()
Dexec.c112 return (path->mnt->mnt_flags & MNT_NOEXEC) || in path_noexec()
Dnamei.c1779 unlikely(link->mnt->mnt_flags & MNT_NOSYMFOLLOW)) in pick_link()
3222 return !(path->mnt->mnt_flags & MNT_NODEV) && in may_open_dev()
/linux-6.6.21/tools/testing/selftests/mount/
Dunprivileged-remount-test.c119 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-6.6.21/tools/testing/selftests/mount_setattr/
Dmount_setattr_test.c244 unsigned int mnt_flags; in read_mnt_flags() local
255 mnt_flags = 0; in read_mnt_flags()
257 mnt_flags |= MS_RDONLY; in read_mnt_flags()
259 mnt_flags |= MS_NOSUID; in read_mnt_flags()
261 mnt_flags |= MS_NODEV; in read_mnt_flags()
263 mnt_flags |= MS_NOEXEC; in read_mnt_flags()
265 mnt_flags |= MS_NOATIME; in read_mnt_flags()
267 mnt_flags |= MS_NODIRATIME; in read_mnt_flags()
269 mnt_flags |= MS_RELATIME; in read_mnt_flags()
271 mnt_flags |= MS_SYNCHRONOUS; in read_mnt_flags()
[all …]
/linux-6.6.21/include/linux/
Dmount.h73 int mnt_flags; member
/linux-6.6.21/security/apparmor/
Dpath.c97 if (path->mnt->mnt_flags & MNT_INTERNAL) { in d_namespace_path()
/linux-6.6.21/mm/
Dsecretmem.c291 secretmem_mnt->mnt_flags |= MNT_NOEXEC; in secretmem_init()
/linux-6.6.21/security/landlock/
Dsyscalls.c262 (f.file->f_path.mnt->mnt_flags & MNT_INTERNAL) || in get_path_from_fd()
Dfs.c626 !!(walker_path.mnt->mnt_flags & MNT_INTERNAL); in is_access_to_paths_allowed()
/linux-6.6.21/fs/overlayfs/
Dsuper.c570 upper_mnt->mnt_flags &= ~(MNT_NOATIME | MNT_NODIRATIME | MNT_RELATIME); in ovl_get_upper()
1116 mnt->mnt_flags |= MNT_READONLY | MNT_NOATIME; in ovl_get_layers()
/linux-6.6.21/fs/ocfs2/
Dfile.c230 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-6.6.21/fs/nfs/
Dinode.c871 if ((path->mnt->mnt_flags & MNT_NOATIME) || in nfs_getattr()
872 ((path->mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) in nfs_getattr()
/linux-6.6.21/Documentation/filesystems/
Dsharedsubtree.rst874 ->mnt_flags
943 Normally we have ->mnt_flags modifications serialized by vfsmount_lock.
Dmount_api.rst392 unsigned int mnt_flags);
/linux-6.6.21/security/selinux/
Dhooks.c600 char mnt_flags = sbsec->flags & SE_MNTMASK; in bad_option() local
612 if (mnt_flags & flag) in bad_option()