Home
last modified time | relevance | path

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

/linux-4.4.14/fs/
Dpnode.h14 #define IS_MNT_SHARED(m) ((m)->mnt.mnt_flags & MNT_SHARED)
17 #define CLEAR_MNT_SHARED(m) ((m)->mnt.mnt_flags &= ~MNT_SHARED)
18 #define IS_MNT_UNBINDABLE(m) ((m)->mnt.mnt_flags & MNT_UNBINDABLE)
19 #define IS_MNT_MARKED(m) ((m)->mnt.mnt_flags & MNT_MARKED)
20 #define SET_MNT_MARK(m) ((m)->mnt.mnt_flags |= MNT_MARKED)
21 #define CLEAR_MNT_MARK(m) ((m)->mnt.mnt_flags &= ~MNT_MARKED)
22 #define IS_MNT_LOCKED(m) ((m)->mnt.mnt_flags & MNT_LOCKED)
37 mnt->mnt.mnt_flags &= ~MNT_SHARED_MASK; in set_mnt_shared()
38 mnt->mnt.mnt_flags |= MNT_SHARED; in set_mnt_shared()
Dnamespace.c276 if (mnt->mnt_flags & MNT_READONLY) in __mnt_is_readonly()
356 while (ACCESS_ONCE(mnt->mnt.mnt_flags) & MNT_WRITE_HOLD) in __mnt_want_write()
498 mnt->mnt.mnt_flags |= MNT_WRITE_HOLD; in mnt_make_readonly()
524 mnt->mnt.mnt_flags |= MNT_READONLY; in mnt_make_readonly()
530 mnt->mnt.mnt_flags &= ~MNT_WRITE_HOLD; in mnt_make_readonly()
538 mnt->mnt.mnt_flags &= ~MNT_READONLY; in __mnt_unmake_readonly()
553 if (!(mnt->mnt.mnt_flags & MNT_READONLY)) { in sb_prepare_remount_readonly()
554 mnt->mnt.mnt_flags |= MNT_WRITE_HOLD; in sb_prepare_remount_readonly()
570 if (mnt->mnt.mnt_flags & MNT_WRITE_HOLD) in sb_prepare_remount_readonly()
571 mnt->mnt.mnt_flags &= ~MNT_WRITE_HOLD; in sb_prepare_remount_readonly()
[all …]
Dstatfs.c12 static int flags_by_mnt(int mnt_flags) in flags_by_mnt() argument
16 if (mnt_flags & MNT_READONLY) in flags_by_mnt()
18 if (mnt_flags & MNT_NOSUID) in flags_by_mnt()
20 if (mnt_flags & MNT_NODEV) in flags_by_mnt()
22 if (mnt_flags & MNT_NOEXEC) in flags_by_mnt()
24 if (mnt_flags & MNT_NOATIME) in flags_by_mnt()
26 if (mnt_flags & MNT_NODIRATIME) in flags_by_mnt()
28 if (mnt_flags & MNT_RELATIME) in flags_by_mnt()
45 return ST_VALID | flags_by_mnt(mnt->mnt_flags) | in calculate_f_flags()
Dpnode.c130 mnt->mnt.mnt_flags |= MNT_UNBINDABLE; in change_mnt_propagation()
132 mnt->mnt.mnt_flags &= ~MNT_UNBINDABLE; in change_mnt_propagation()
252 child->mnt.mnt_flags &= ~MNT_LOCKED; in propagate_one()
388 child->mnt.mnt_flags &= ~MNT_LOCKED; in propagate_mount_unlock()
437 child->mnt.mnt_flags |= MNT_UMOUNT; in __propagate_umount()
Dproc_namespace.c75 if (mnt->mnt_flags & fs_infop->flag) in show_mnt_opts()
151 seq_puts(m, mnt->mnt_flags & MNT_READONLY ? " ro" : " rw"); in show_mountinfo()
Dinode.c1538 if (!(mnt->mnt_flags & MNT_RELATIME)) in relatime_need_update()
1618 if (mnt->mnt_flags & MNT_NOATIME) in atime_needs_update()
1620 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) in atime_needs_update()
Dexec.c103 return (path->mnt->mnt_flags & MNT_NOEXEC) || in path_noexec()
1298 if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID) in bprm_fill_uid()
Dblock_dev.c1766 if (path.mnt->mnt_flags & MNT_NODEV) in lookup_bdev()
Dnamei.c2693 if (path->mnt->mnt_flags & MNT_NODEV) in may_open()
/linux-4.4.14/tools/testing/selftests/mount/
Dunprivileged-remount-test.c118 int mnt_flags; in read_mnt_flags() local
130 mnt_flags = 0; in read_mnt_flags()
132 mnt_flags |= MS_RDONLY; in read_mnt_flags()
134 mnt_flags |= MS_NOSUID; in read_mnt_flags()
136 mnt_flags |= MS_NODEV; in read_mnt_flags()
138 mnt_flags |= MS_NOEXEC; in read_mnt_flags()
140 mnt_flags |= MS_NOATIME; in read_mnt_flags()
142 mnt_flags |= MS_NODIRATIME; in read_mnt_flags()
144 mnt_flags |= MS_RELATIME; in read_mnt_flags()
146 mnt_flags |= MS_SYNCHRONOUS; in read_mnt_flags()
[all …]
/linux-4.4.14/include/linux/
Dmount.h69 int mnt_flags; member
/linux-4.4.14/security/apparmor/
Dpath.c63 if (path->mnt->mnt_flags & MNT_INTERNAL) { in d_namespace_path()
/linux-4.4.14/security/
Dcommoncap.c456 if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID) in get_file_caps()
/linux-4.4.14/fs/ocfs2/
Dfile.c244 if ((vfsmnt->mnt_flags & MNT_NOATIME) || in ocfs2_should_update_atime()
245 ((vfsmnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) in ocfs2_should_update_atime()
248 if (vfsmnt->mnt_flags & MNT_RELATIME) { in ocfs2_should_update_atime()
/linux-4.4.14/fs/nfs/
Dinode.c673 if ((mnt->mnt_flags & MNT_NOATIME) || in nfs_getattr()
674 ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) in nfs_getattr()
/linux-4.4.14/fs/overlayfs/
Dsuper.c1055 mnt->mnt_flags |= MNT_READONLY; in ovl_fill_super()
/linux-4.4.14/Documentation/filesystems/
Dsharedsubtree.txt822 ->mnt_flags takes two more flags to indicate the propagation status of
885 Normally we have ->mnt_flags modifications serialized by vfsmount_lock.
/linux-4.4.14/security/selinux/
Dhooks.c594 char mnt_flags = sbsec->flags & SE_MNTMASK; in bad_option() local
606 if (mnt_flags & flag) in bad_option()
2174 int nosuid = (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID); in check_nnp_nosuid()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dfile.c1059 if (mnt->mnt_flags & (MNT_NOATIME | MNT_READONLY)) in file_is_noatime()
1062 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) in file_is_noatime()