Searched refs:i_mode (Results 101 - 125 of 463) sorted by relevance

1234567891011>>

/linux-master/fs/coda/
H A Dcoda_linux.c111 inode->i_mode |= inode_type;
114 inode->i_mode = attr->va_mode | inode_type;
/linux-master/security/
H A Dinode.c30 if (S_ISLNK(inode->i_mode))
147 inode->i_mode = mode;
/linux-master/mm/
H A Dmemfd.c217 if (seals & F_SEAL_EXEC && inode->i_mode & 0111)
357 inode->i_mode &= ~0111;
/linux-master/fs/f2fs/
H A Ddir.c455 de->file_type = fs_umode_to_ftype(inode->i_mode);
506 f2fs_update_dentry(inode->i_ino, inode->i_mode, d, &dot, 0, 0);
509 f2fs_update_dentry(parent->i_ino, parent->i_mode, d, &dotdot, 0, 1);
547 if (S_ISDIR(inode->i_mode)) {
585 if (!S_ISDIR(inode->i_mode))
608 if (S_ISDIR(inode->i_mode))
860 if (S_ISDIR(inode->i_mode))
865 if (S_ISDIR(inode->i_mode)) {
H A Dinline.c21 if (!S_ISREG(inode->i_mode) && !S_ISLNK(inode->i_mode))
48 return (S_ISREG(inode->i_mode) &&
58 if (!S_ISDIR(inode->i_mode))
784 if ((S_ISREG(inode->i_mode) || S_ISLNK(inode->i_mode)) &&
790 if (S_ISDIR(inode->i_mode) && !f2fs_has_inline_dentry(inode)) {
/linux-master/fs/9p/
H A Dvfs_inode_dotl.c48 if (dir_inode->i_mode & S_ISGID) {
323 if (dir->i_mode & S_ISGID)
392 if (S_ISREG(inode->i_mode)) {
520 if (S_ISREG(inode->i_mode)) {
591 mode |= inode->i_mode & ~S_IALLUGO;
592 inode->i_mode = mode;
619 mode |= inode->i_mode & ~S_IALLUGO;
620 inode->i_mode = mode;
/linux-master/fs/erofs/
H A Derofs_fs.h161 __le16 i_mode; member in struct:erofs_inode_compact
179 __le16 i_mode; member in struct:erofs_inode_extended
/linux-master/fs/xfs/
H A Dxfs_symlink.c305 VFS_I(ip)->i_mode = (VFS_I(ip)->i_mode & ~S_IFMT) | S_IFREG;
H A Dxfs_inode.c667 umode_t mode = VFS_I(ip)->i_mode;
718 VFS_I(ip)->i_mode, ip->i_diflags);
743 VFS_I(ip)->i_mode, ip->i_diflags, ip->i_diflags2);
805 if (dir && !(dir->i_mode & S_ISGID) && xfs_has_grpid(mp)) {
808 inode->i_mode = mode;
818 if (irix_sgid_inherit && (inode->i_mode & S_ISGID) &&
820 inode->i_mode &= ~S_ISGID;
884 /* now that we have an i_mode we can setup the inode structure */
1314 ASSERT(!S_ISDIR(VFS_I(sip)->i_mode));
1364 if (!special_file(VFS_I(sip)->i_mode) ||
[all...]
H A Dxfs_ioctl.c495 if (S_ISDIR(VFS_I(ip)->i_mode)) {
504 } else if (S_ISREG(VFS_I(ip)->i_mode)) {
573 if (rtflag != XFS_IS_REALTIME_INODE(ip) && S_ISREG(VFS_I(ip)->i_mode))
590 if (S_ISDIR(inode->i_mode))
654 if (S_ISREG(VFS_I(ip)->i_mode) && ip->i_df.if_nextents &&
680 VFS_I(ip)->i_mode, new_diflags);
705 VFS_I(ip)->i_mode, new_diflags, new_diflags2);
799 if ((VFS_I(ip)->i_mode & (S_ISUID|S_ISGID)) &&
801 VFS_I(ip)->i_mode &= ~(S_ISUID|S_ISGID);
/linux-master/fs/
H A Dinode.c672 if (S_ISCHR(inode->i_mode) && inode->i_cdev)
1043 if (S_ISDIR(inode->i_mode)) {
1105 WARN_ON_ONCE(S_ISDIR(inode1->i_mode));
1107 WARN_ON_ONCE(S_ISDIR(inode2->i_mode));
1125 WARN_ON_ONCE(S_ISDIR(inode1->i_mode));
1129 WARN_ON_ONCE(S_ISDIR(inode2->i_mode));
1950 if ((inode->i_sb->s_flags & SB_NODIRATIME) && S_ISDIR(inode->i_mode))
1955 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))
2043 if (IS_NOSEC(inode) || !S_ISREG(inode->i_mode))
2221 if (S_ISDIR(inode->i_mode)
[all...]
/linux-master/fs/fat/
H A Dfile.c39 int is_dir = S_ISDIR(inode->i_mode);
72 S_IRUGO | S_IWUGO | (inode->i_mode & S_IXUGO));
276 if (!S_ISREG(inode->i_mode))
431 if (S_ISREG(inode->i_mode))
444 if ((perm & (S_IRUGO | S_IXUGO)) != (inode->i_mode & (S_IRUGO|S_IXUGO)))
/linux-master/fs/jfs/
H A Djfs_imap.c668 if (S_ISDIR(ip->i_mode) && (lid = jfs_ip->xtlid)) {
761 if (S_ISLNK(ip->i_mode) && ip->i_size < IDATASIZE) {
3040 ip->i_mode = le32_to_cpu(dip->di_mode) & 0xffff;
3042 ip->i_mode = (ip->i_mode & ~0777) | (0777 & ~sbi->umask);
3044 if (S_ISDIR(ip->i_mode)) {
3045 if (ip->i_mode & 0400)
3046 ip->i_mode |= 0100;
3047 if (ip->i_mode & 0040)
3048 ip->i_mode |
[all...]
H A Dnamei.c630 filetype = ip->i_mode & S_IFMT;
698 type = ip->i_mode & S_IFMT;
941 ip->i_mode |= 0777;
1136 if (S_ISDIR(old_ip->i_mode)) {
1180 if (S_ISDIR(new_ip->i_mode)) {
1188 if (!S_ISDIR(old_ip->i_mode) && new_ip)
1231 if (S_ISDIR(old_ip->i_mode))
1246 if (S_ISDIR(old_ip->i_mode)) {
1338 if (new_ip && !S_ISDIR(new_ip->i_mode))
1417 init_special_inode(ip, ip->i_mode, rde
[all...]
/linux-master/fs/gfs2/
H A Dglops.c309 int isreg = ip && S_ISREG(ip->i_inode.i_mode);
382 if (ip && S_ISREG(ip->i_inode.i_mode))
424 inode->i_mode = mode;
477 if (S_ISREG(inode->i_mode))
562 IF2DT(inode->i_mode), ip->i_flags,
/linux-master/security/integrity/evm/
H A Devm_main.c444 if (!evm_key_loaded() || !S_ISREG(inode->i_mode) || evm_fixmode)
493 * acls is their modifying of the i_mode, which is included in security.evm.
645 if (rc || (inode->i_mode != mode))
893 (!(ia_valid & ATTR_MODE) || attr->ia_mode == inode->i_mode))
1084 if (!S_ISREG(inode->i_mode) || !(mode & FMODE_WRITE))
1096 if (!S_ISREG(inode->i_mode))
/linux-master/fs/proc/
H A Dinode.c139 if (S_ISDIR(inode->i_mode)) {
663 inode->i_mode = de->mode;
672 if (S_ISREG(inode->i_mode)) {
686 } else if (S_ISDIR(inode->i_mode)) {
689 } else if (S_ISLNK(inode->i_mode)) {
/linux-master/fs/xfs/scrub/
H A Dparent.c165 !S_ISDIR(VFS_I(dp)->i_mode)) {
423 if (!S_ISDIR(VFS_I(ip)->i_mode)) {
713 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) {
795 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) {
838 if (!S_ISDIR(VFS_I(sc->ip)->i_mode))
H A Dnlinks.c190 if (!error && S_ISDIR(VFS_IC(p->ip)->i_mode))
202 if (S_ISDIR(VFS_IC(p->ip)->i_mode) &&
563 if (S_ISDIR(VFS_I(ip)->i_mode))
681 if (!xfs_has_ftype(sc->mp) && S_ISDIR(VFS_I(ip)->i_mode))
707 if (S_ISDIR(VFS_I(ip)->i_mode) && actual_nlink > 0) {
H A Dparent_repair.c445 if (name->type != xfs_mode_to_ftype(VFS_I(sc->ip)->i_mode))
492 if (S_ISDIR(VFS_I(ip)->i_mode) && xfs_need_iread_extents(&ip->i_df)) {
519 if (S_ISDIR(VFS_I(ip)->i_mode)) {
781 if (S_ISDIR(VFS_I(sc->ip)->i_mode)) {
836 if (S_ISDIR(VFS_I(sc->ip)->i_mode))
1371 if (S_ISDIR(VFS_I(rp->sc->ip)->i_mode))
1601 if (xfs_has_parent(sc->mp) && !S_ISDIR(VFS_I(sc->ip)->i_mode)) {
/linux-master/fs/tracefs/
H A Devent_inode.c192 if (!(dentry->d_inode->i_mode & S_IFDIR)) {
212 if (dentry->d_inode->i_mode & S_IFDIR) {
308 inode->i_mode = attr->mode & EVENTFS_MODE_MASK;
310 inode->i_mode = mode;
808 inode->i_mode = S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO;
/linux-master/fs/overlayfs/
H A Dutil.c400 if (WARN_ON(!S_ISREG(inode->i_mode)))
420 return inode && S_ISREG(inode->i_mode) ?
426 return inode && S_ISDIR(inode->i_mode) ? OVL_I(inode)->cache : NULL;
509 if (!S_ISREG(inode->i_mode))
1082 if (!S_ISDIR(inode->i_mode) && inode->i_nlink != 1) {
1246 if (!S_ISREG(d_inode(path->dentry)->i_mode))
1400 !S_ISREG(d_inode(metapath->dentry)->i_mode))
1448 if (!ofs->config.verity_mode || !S_ISREG(d_inode(src->dentry)->i_mode))
1529 inode->i_mode = realinode->i_mode;
[all...]
/linux-master/fs/ecryptfs/
H A Dinode.c57 if (S_ISLNK(inode->i_mode))
59 else if (S_ISDIR(inode->i_mode))
64 if (S_ISDIR(inode->i_mode))
66 else if (special_file(inode->i_mode))
67 init_special_inode(inode, inode->i_mode, inode->i_rdev);
227 if (S_ISDIR(ecryptfs_inode->i_mode)) {
368 if (S_ISREG(inode->i_mode)) {
/linux-master/fs/smb/client/
H A Ddir.c221 if (S_ISDIR(newinode->i_mode)) {
228 if (!S_ISREG(newinode->i_mode)) {
354 if (inode->i_mode & S_ISGID)
388 if ((*oplock & CIFS_CREATE_ACTION) && S_ISREG(newinode->i_mode)) {
390 newinode->i_mode = mode;
393 if (inode->i_mode & S_ISGID)
412 if (S_ISDIR(newinode->i_mode)) {
/linux-master/fs/zonefs/
H A Dsuper.c236 inode->i_mode &= ~0777;
241 inode->i_mode &= ~0777;
243 inode->i_mode &= ~0222;
247 z->z_mode = inode->i_mode;
554 if ((iattr->ia_valid & ATTR_MODE) && S_ISDIR(inode->i_mode) &&
575 if (S_ISREG(inode->i_mode)) {
578 z->z_mode = inode->i_mode;
653 inode->i_mode = z->z_mode;
1308 inode->i_mode = S_IFDIR | 0555;

Completed in 343 milliseconds

1234567891011>>