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

1234567891011>>

/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/minix/
H A Dbitmap.c167 raw_inode->i_mode = 0;
174 raw_inode->i_mode = 0;
/linux-master/fs/sysv/
H A Dialloc.c36 /* An inode on disk is considered free if both i_mode == 0 and i_nlink == 0. */
83 if (raw_inode->i_mode == 0 && raw_inode->i_nlink == 0) {
203 if (raw_inode->i_mode == 0 && raw_inode->i_nlink == 0)
/linux-master/fs/configfs/
H A Dinode.c90 inode->i_mode = mode;
96 inode->i_mode = iattr->ia_mode;
/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/fs/xfs/
H A Dxfs_symlink.c291 VFS_I(ip)->i_mode = (VFS_I(ip)->i_mode & ~S_IFMT) | S_IFREG;
/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/
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/gfs2/
H A Dglops.c306 int isreg = ip && S_ISREG(ip->i_inode.i_mode);
379 if (ip && S_ISREG(ip->i_inode.i_mode))
417 inode->i_mode = mode;
465 if (S_ISREG(inode->i_mode))
553 IF2DT(inode->i_mode), ip->i_flags,
/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/proc/
H A Dinode.c139 if (S_ISDIR(inode->i_mode)) {
665 inode->i_mode = de->mode;
674 if (S_ISREG(inode->i_mode)) {
688 } else if (S_ISDIR(inode->i_mode)) {
691 } else if (S_ISLNK(inode->i_mode)) {
/linux-master/security/integrity/evm/
H A Devm_main.c440 if (!evm_key_loaded() || !S_ISREG(inode->i_mode) || evm_fixmode)
489 * acls is their modifying of the i_mode, which is included in security.evm.
641 if (rc || (inode->i_mode != mode))
864 (!(ia_valid & ATTR_MODE) || attr->ia_mode == inode->i_mode))
1030 if (!S_ISREG(inode->i_mode) || !(mode & FMODE_WRITE))
1042 if (!S_ISREG(inode->i_mode))
/linux-master/fs/xfs/scrub/
H A Dnlinks.c167 if (!error && S_ISDIR(VFS_IC(p->ip)->i_mode))
179 if (S_ISDIR(VFS_IC(p->ip)->i_mode) &&
451 if (S_ISDIR(VFS_I(ip)->i_mode))
561 if (!xfs_has_ftype(sc->mp) && S_ISDIR(VFS_I(ip)->i_mode))
585 if (S_ISDIR(VFS_I(ip)->i_mode) && actual_nlink > 0) {
/linux-master/fs/tracefs/
H A Devent_inode.c163 if (!(dentry->d_inode->i_mode & S_IFDIR)) {
183 if (dentry->d_inode->i_mode & S_IFDIR) {
320 inode->i_mode = mode;
328 inode->i_mode = attr->mode & EVENTFS_MODE_MASK;
812 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;
/linux-master/drivers/usb/gadget/function/
H A Dstorage_common.c209 if ((!S_ISREG(inode->i_mode) && !S_ISBLK(inode->i_mode))) {
235 } else if (S_ISBLK(inode->i_mode)) {

Completed in 250 milliseconds

1234567891011>>