/linux-master/fs/exfat/ |
H A D | file.c | 111 mode_t i_mode, mask, perm; local 113 i_mode = inode->i_mode; 115 mask = (S_ISREG(i_mode) || S_ISLNK(i_mode)) ? 120 if ((perm & 0555) != (i_mode & 0555)) 389 int is_dir = S_ISDIR(inode->i_mode); 418 ia.ia_mode = exfat_make_mode(sbi, attr, 0666 | (inode->i_mode & 0111));
|
/linux-master/fs/9p/ |
H A D | acl.c | 193 if (S_ISLNK(inode->i_mode)) { 232 if (!S_ISDIR(inode->i_mode)) { 287 if (S_ISLNK(inode->i_mode)) 291 retval = __posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode);
|
H A D | cache.c | 57 if (!S_ISREG(inode->i_mode))
|
/linux-master/fs/proc/ |
H A D | thread_self.c | 50 inode->i_mode = S_IFLNK | S_IRWXUGO;
|
/linux-master/fs/coda/ |
H A D | cache.c | 109 if ( !inode || !S_ISDIR(inode->i_mode))
|
/linux-master/fs/xfs/ |
H A D | xfs_pnfs.c | 97 VFS_I(ip)->i_mode &= ~S_ISUID; 98 if (VFS_I(ip)->i_mode & S_IXGRP) 99 VFS_I(ip)->i_mode &= ~S_ISGID;
|
H A D | xfs_acl.c | 189 if (!S_ISDIR(inode->i_mode)) 235 inode->i_mode = mode; 274 if (!error && set_mode && mode != inode->i_mode) 282 * provide data in valid format and ensure i_mode is consistent.
|
H A D | xfs_iops.c | 363 error = xfs_dentry_mode_to_name(&name, dentry, inode->i_mode); 461 /* if we are exchanging files, we need to set i_mode of both files */ 463 omode = d_inode(ndentry)->i_mode; 470 d_inode(odentry)->i_mode); 570 stat->mode = inode->i_mode; 607 switch (inode->i_mode & S_IFMT) { 758 * XXX(hch): Updating the ACL entries is not atomic vs the i_mode 765 error = posix_acl_chmod(idmap, dentry, inode->i_mode); 800 ASSERT(S_ISREG(inode->i_mode)); 1195 if (!S_ISREG(VFS_I(ip)->i_mode)) [all...] |
H A D | xfs_inode.c | 666 umode_t mode = VFS_I(ip)->i_mode; 717 VFS_I(ip)->i_mode, ip->i_diflags); 742 VFS_I(ip)->i_mode, ip->i_diflags, ip->i_diflags2); 802 if (dir && !(dir->i_mode & S_ISGID) && xfs_has_grpid(mp)) { 805 inode->i_mode = mode; 815 if (irix_sgid_inherit && (inode->i_mode & S_ISGID) && 817 inode->i_mode &= ~S_ISGID; 881 /* now that we have an i_mode we can setup the inode structure */ 1276 ASSERT(!S_ISDIR(VFS_I(sip)->i_mode)); 1312 if (!special_file(VFS_I(sip)->i_mode) || [all...] |
H A D | xfs_ioctl.c | 93 if (!S_ISREG(inode->i_mode) && 94 !S_ISDIR(inode->i_mode) && 95 !S_ISLNK(inode->i_mode)) 158 if (!S_ISDIR(file_inode(parfilp)->i_mode)) 210 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) { 233 if (S_ISDIR(inode->i_mode) && (fmode & FMODE_WRITE)) { 253 if (S_ISREG(inode->i_mode)) { 1080 if (S_ISDIR(VFS_I(ip)->i_mode)) { 1089 } else if (S_ISREG(VFS_I(ip)->i_mode)) { [all...] |
/linux-master/fs/hpfs/ |
H A D | namei.c | 64 result->i_mode |= S_IFDIR; 71 result->i_mode &= ~0222; 106 result->i_mode != (mode | S_IFDIR)) { 109 result->i_mode = mode | S_IFDIR; 161 result->i_mode |= S_IFREG; 162 result->i_mode &= ~0111; 171 result->i_mode &= ~0222; 194 result->i_mode != (mode | S_IFREG)) { 197 result->i_mode = mode | S_IFREG; 325 result->i_mode [all...] |
/linux-master/fs/ceph/ |
H A D | acl.c | 99 umode_t new_mode = inode->i_mode, old_mode = inode->i_mode; 117 if (!S_ISDIR(inode->i_mode)) {
|
/linux-master/fs/overlayfs/ |
H A D | inode.c | 134 if (S_ISDIR(dentry->d_inode->i_mode)) { 165 bool is_dir = S_ISDIR(inode->i_mode); 315 !special_file(realinode->i_mode) && mask & MAY_WRITE) { 548 if (type == ACL_TYPE_DEFAULT && !S_ISDIR(inode->i_mode)) 557 if (unlikely(inode->i_mode & S_ISGID) && type == ACL_TYPE_ACCESS && 830 if (S_ISDIR(inode->i_mode)) 878 if (S_ISDIR(inode->i_mode)) { 906 inode->i_mode = mode; 1069 if (S_ISDIR(inode->i_mode) && strict) { 1157 trap->i_mode [all...] |
/linux-master/fs/nilfs2/ |
H A D | inode.c | 448 inode->i_mode = le16_to_cpu(raw_inode->i_mode); 459 if (nilfs_is_metadata_file_inode(inode) && !S_ISREG(inode->i_mode)) 468 ii->i_dir_acl = S_ISREG(inode->i_mode) ? 474 if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || 475 S_ISLNK(inode->i_mode)) { 505 if (S_ISREG(inode->i_mode)) { 509 } else if (S_ISDIR(inode->i_mode)) { 513 } else if (S_ISLNK(inode->i_mode)) { [all...] |
/linux-master/fs/afs/ |
H A D | security.c | 437 mask, access, S_ISDIR(inode->i_mode) ? "dir" : "file"); 440 if (S_ISDIR(inode->i_mode)) { 453 if ((mask & MAY_EXEC) && !(inode->i_mode & S_IXUSR)) 458 if (!(inode->i_mode & S_IRUSR)) 463 if (!(inode->i_mode & S_IWUSR))
|
/linux-master/fs/qnx4/ |
H A D | inode.c | 297 inode->i_mode = 0; 318 inode->i_mode = le16_to_cpu(raw_inode->di_mode); 329 if (S_ISREG(inode->i_mode)) { 333 } else if (S_ISDIR(inode->i_mode)) { 336 } else if (S_ISLNK(inode->i_mode)) {
|
/linux-master/fs/hfsplus/ |
H A D | inode.c | 203 inode->i_mode = mode; 411 if (S_ISDIR(inode->i_mode)) { 416 } else if (S_ISREG(inode->i_mode)) { 422 } else if (S_ISLNK(inode->i_mode)) { 441 if (S_ISDIR(inode->i_mode)) { 447 if (S_ISREG(inode->i_mode)) { 452 } else if (S_ISLNK(inode->i_mode)) { 548 if (S_ISREG(inode->i_mode)) { 555 } else if (S_ISLNK(inode->i_mode)) { 560 init_special_inode(inode, inode->i_mode, [all...] |
/linux-master/fs/ |
H A D | ioctl.c | 625 if ((fa->fsx_xflags & FS_XFLAG_EXTSIZE) && !S_ISREG(inode->i_mode)) 629 !S_ISDIR(inode->i_mode)) 633 !S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode)) 641 !(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) 822 if (S_ISDIR(inode->i_mode) || S_ISREG(inode->i_mode) || 823 S_ISLNK(inode->i_mode)) { 857 if (!S_ISREG(inode->i_mode)) [all...] |
H A D | open.c | 79 if (S_ISDIR(inode->i_mode)) 81 if (!S_ISREG(inode->i_mode)) 168 if (!S_ISREG(inode->i_mode) || !(file->f_mode & FMODE_WRITE)) 313 if (S_ISFIFO(inode->i_mode)) 316 if (S_ISDIR(inode->i_mode)) 319 if (!S_ISREG(inode->i_mode) && !S_ISBLK(inode->i_mode)) 496 if ((mode & MAY_EXEC) && S_ISREG(inode->i_mode)) { 508 if (res || !(mode & S_IWOTH) || special_file(inode->i_mode)) 648 newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode [all...] |
/linux-master/fs/qnx6/ |
H A D | inode.c | 512 inode->i_mode = S_IFREG | S_IRUSR; /* probably wrong */ 536 inode->i_mode = 0; 557 inode->i_mode = fs16_to_cpu(sbi, raw_inode->di_mode); 572 if (S_ISREG(inode->i_mode)) { 575 } else if (S_ISDIR(inode->i_mode)) { 579 } else if (S_ISLNK(inode->i_mode)) { 584 init_special_inode(inode, inode->i_mode, 0);
|
/linux-master/fs/ocfs2/ |
H A D | inode.c | 293 inode->i_mode = le16_to_cpu(fe->i_mode); 298 if (S_ISLNK(inode->i_mode) && !fe->i_clusters) { 339 switch (inode->i_mode & S_IFMT) { 364 init_special_inode(inode, inode->i_mode, 396 if (S_ISDIR(inode->i_mode)) 538 if (S_ISCHR(le16_to_cpu(fe->i_mode)) || 539 S_ISBLK(le16_to_cpu(fe->i_mode))) 797 if (S_ISDIR(inode->i_mode)) { 1314 fe->i_mode [all...] |
/linux-master/fs/isofs/ |
H A D | inode.c | 973 if (!S_ISDIR(inode->i_mode)) { 1366 inode->i_mode = S_IFDIR | sbi->s_dmode; 1368 inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; 1378 inode->i_mode = S_IFREG | sbi->s_fmode; 1385 inode->i_mode = S_IFREG | S_IRUGO | S_IXUGO; 1462 if (S_ISDIR(inode->i_mode) && sbi->s_overriderockperm && 1464 inode->i_mode = S_IFDIR | sbi->s_dmode; 1465 if (S_ISREG(inode->i_mode) && sbi->s_overriderockperm && 1467 inode->i_mode = S_IFREG | sbi->s_fmode; 1470 if (S_ISREG(inode->i_mode)) { [all...] |
/linux-master/fs/f2fs/ |
H A D | namei.c | 153 if (S_ISDIR(inode->i_mode)) 250 if (S_ISDIR(inode->i_mode)) 304 if (S_ISDIR(inode->i_mode)) 472 if (!S_ISDIR(dir->i_mode)) { 473 f2fs_err(sbi, "inconsistent inode status, skip recovering inline_dots inode (ino:%lu, i_mode:%u, pino:%u)", 474 dir->i_ino, dir->i_mode, pino); 571 (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) && 829 init_special_inode(inode, inode->i_mode, rdev); 869 init_special_inode(inode, inode->i_mode, WHITEOUT_DE [all...] |
/linux-master/fs/fuse/ |
H A D | inode.c | 177 if (S_ISREG(inode->i_mode) && !fuse_is_bad(inode)) { 222 inode->i_mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777); 267 * Don't set the sticky bit in i_mode, unless we want the VFS 271 fi->orig_i_mode = inode->i_mode; 273 inode->i_mode &= ~S_ISVTX; 292 if (!fc->writeback_cache || !S_ISREG(inode->i_mode)) 346 if (!cache_mask && S_ISREG(inode->i_mode)) { 385 inode->i_mode = attr->mode & S_IFMT; 389 if (S_ISREG(inode->i_mode)) { [all...] |
/linux-master/fs/omfs/ |
H A D | inode.c | 120 if (S_ISDIR(inode->i_mode)) 122 else if (S_ISREG(inode->i_mode)) 126 inode->i_mode); 194 if (S_ISREG(inode->i_mode)) { 241 inode->i_mode = S_IFDIR | (S_IRWXUGO & ~sbi->s_dmask); 248 inode->i_mode = S_IFREG | (S_IRWXUGO & ~sbi->s_fmask);
|