Searched refs:mnt_flags (Results 1 - 20 of 20) sorted by relevance

/linux-master/fs/
H A 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;
36 mnt->mnt.mnt_flags |= MNT_SHARED;
H A Dnamespace.c277 return (mnt->mnt_flags & MNT_READONLY) || sb_rdonly(mnt->mnt_sb);
361 while (READ_ONCE(mnt->mnt.mnt_flags) & MNT_WRITE_HOLD) {
525 mnt->mnt.mnt_flags |= MNT_WRITE_HOLD;
573 mnt->mnt.mnt_flags &= ~MNT_WRITE_HOLD;
582 mnt->mnt.mnt_flags |= MNT_READONLY;
598 if (!(mnt->mnt.mnt_flags & MNT_READONLY)) {
610 if (mnt->mnt.mnt_flags & MNT_WRITE_HOLD)
611 mnt->mnt.mnt_flags &= ~MNT_WRITE_HOLD;
646 if (bastard->mnt_flags & MNT_SYNC_UMOUNT) {
651 if (unlikely(bastard->mnt_flags
2749 can_change_locked_flags(struct mount *mnt, unsigned int mnt_flags) argument
2776 change_mount_ro_state(struct mount *mnt, unsigned int mnt_flags) argument
2790 set_mount_attributes(struct mount *mnt, unsigned int mnt_flags) argument
2823 do_reconfigure_mnt(struct path *path, unsigned int mnt_flags) argument
2860 do_remount(struct path *path, int ms_flags, int sb_flags, int mnt_flags, void *data) argument
3231 do_add_mount(struct mount *newmnt, struct mountpoint *mp, const struct path *path, int mnt_flags) argument
3264 do_new_mount_fc(struct fs_context *fc, struct path *mountpoint, unsigned int mnt_flags) argument
3305 do_new_mount(struct path *path, const char *fstype, int sb_flags, int mnt_flags, const char *name, void *data) argument
3607 unsigned int mnt_flags = 0, sb_flags; local
3921 unsigned int mnt_flags = 0; local
3952 unsigned int mnt_flags = 0; local
4726 unsigned int mnt_flags = READ_ONCE(mnt->mnt_flags); local
5283 int mnt_flags; local
[all...]
H A Dstatfs.c14 static int flags_by_mnt(int mnt_flags) argument
18 if (mnt_flags & MNT_READONLY)
20 if (mnt_flags & MNT_NOSUID)
22 if (mnt_flags & MNT_NODEV)
24 if (mnt_flags & MNT_NOEXEC)
26 if (mnt_flags & MNT_NOATIME)
28 if (mnt_flags & MNT_NODIRATIME)
30 if (mnt_flags & MNT_RELATIME)
32 if (mnt_flags & MNT_NOSYMFOLLOW)
51 return ST_VALID | flags_by_mnt(mnt->mnt_flags) |
[all...]
H A Dmount.h105 return m && likely(!(m->mnt.mnt_flags & MNT_SYNC_UMOUNT));
148 WARN_ON(!(mnt->mnt.mnt_flags & MNT_ONRB));
149 mnt->mnt.mnt_flags &= ~MNT_ONRB;
H A Dpnode.c133 mnt->mnt.mnt_flags |= MNT_UNBINDABLE;
135 mnt->mnt.mnt_flags &= ~MNT_UNBINDABLE;
461 child->mnt.mnt_flags &= ~MNT_LOCKED;
468 mnt->mnt.mnt_flags |= MNT_UMOUNT;
489 if (mnt->mnt.mnt_flags & (MNT_UMOUNT | MNT_MARKED))
548 while (parent->mnt.mnt_flags & MNT_UMOUNT) {
612 } else if (child->mnt.mnt_flags & MNT_UMOUNT) {
H A Dproc_namespace.c79 if (mnt->mnt_flags & fs_infop->flag)
155 seq_puts(m, mnt->mnt_flags & MNT_READONLY ? " ro" : " rw");
H A Dinode.c1808 if (!(mnt->mnt_flags & MNT_RELATIME))
1953 if (mnt->mnt_flags & MNT_NOATIME)
1955 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))
H A Dexec.c113 return (path->mnt->mnt_flags & MNT_NOEXEC) ||
H A Dnamei.c1781 unlikely(link->mnt->mnt_flags & MNT_NOSYMFOLLOW))
3229 return !(path->mnt->mnt_flags & MNT_NODEV) &&
/linux-master/tools/testing/selftests/mount/
H A Dunprivileged-remount-test.c119 int mnt_flags; local
131 mnt_flags = 0;
133 mnt_flags |= MS_RDONLY;
135 mnt_flags |= MS_NOSUID;
137 mnt_flags |= MS_NODEV;
139 mnt_flags |= MS_NOEXEC;
141 mnt_flags |= MS_NOATIME;
143 mnt_flags |= MS_NODIRATIME;
145 mnt_flags |= MS_RELATIME;
147 mnt_flags |
[all...]
/linux-master/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c244 unsigned int mnt_flags; local
255 mnt_flags = 0;
257 mnt_flags |= MS_RDONLY;
259 mnt_flags |= MS_NOSUID;
261 mnt_flags |= MS_NODEV;
263 mnt_flags |= MS_NOEXEC;
265 mnt_flags |= MS_NOATIME;
267 mnt_flags |= MS_NODIRATIME;
269 mnt_flags |= MS_RELATIME;
271 mnt_flags |
[all...]
/linux-master/include/linux/
H A Dmount.h72 int mnt_flags; member in struct:vfsmount
/linux-master/security/apparmor/
H A Dpath.c97 if (path->mnt->mnt_flags & MNT_INTERNAL) {
/linux-master/mm/
H A Dsecretmem.c291 secretmem_mnt->mnt_flags |= MNT_NOEXEC;
/linux-master/security/landlock/
H A Dsyscalls.c288 (f.file->f_path.mnt->mnt_flags & MNT_INTERNAL) ||
H A Dfs.c755 !!(walker_path.mnt->mnt_flags & MNT_INTERNAL);
/linux-master/fs/overlayfs/
H A Dsuper.c510 upper_mnt->mnt_flags &= ~(MNT_NOATIME | MNT_NODIRATIME | MNT_RELATIME);
1061 mnt->mnt_flags |= MNT_READONLY | MNT_NOATIME;
/linux-master/fs/ocfs2/
H A Dfile.c230 if ((vfsmnt->mnt_flags & MNT_NOATIME) ||
231 ((vfsmnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)))
234 if (vfsmnt->mnt_flags & MNT_RELATIME) {
/linux-master/fs/nfs/
H A Dinode.c871 if ((path->mnt->mnt_flags & MNT_NOATIME) ||
872 ((path->mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)))
/linux-master/security/selinux/
H A Dhooks.c602 char mnt_flags = sbsec->flags & SE_MNTMASK; local
614 if (mnt_flags & flag)

Completed in 299 milliseconds