Searched refs:i_mode (Results 151 - 175 of 463) sorted by relevance

1234567891011>>

/linux-master/fs/jffs2/
H A Dfile.c168 ri.mode = cpu_to_jemode(inode->i_mode);
291 ri->mode = cpu_to_jemode(inode->i_mode);
/linux-master/fs/reiserfs/
H A Dnamei.c569 if (!S_ISDIR(inode->i_mode) && visible)
746 init_special_inode(inode, inode->i_mode, rdev);
1371 if (S_ISDIR(old_inode->i_mode)) {
1583 if (S_ISDIR(new_dentry_inode->i_mode)) {
1596 if (S_ISDIR(old_inode->i_mode)) {
1675 if (S_ISREG(inode->i_mode))
1677 else if (S_ISDIR(inode->i_mode))
1679 else if (S_ISLNK(inode->i_mode))
/linux-master/fs/overlayfs/
H A Dnamei.c448 inode_wrong_type(d_inode(upperdentry), d_inode(origin)->i_mode))
466 upperdentry, d_inode(upperdentry)->i_mode & S_IFMT,
467 d_inode(origin)->i_mode & S_IFMT);
694 index, d_inode(index)->i_mode & S_IFMT, err);
699 index, d_inode(index)->i_mode & S_IFMT,
821 inode_wrong_type(inode, d_inode(origin)->i_mode)) {
830 index, d_inode(index)->i_mode & S_IFMT,
831 d_inode(origin)->i_mode & S_IFMT);
/linux-master/fs/nilfs2/
H A Dnilfs.h201 if (S_ISLNK(inode->i_mode))
204 inode->i_mode &= ~current_umask();
/linux-master/fs/notify/dnotify/
H A Ddnotify.c162 if (!S_ISDIR(inode->i_mode))
289 if (!S_ISDIR(inode->i_mode)) {
/linux-master/fs/xfs/
H A Dxfs_icache.c89 /* VFS doesn't initialise i_mode or i_state! */
90 VFS_I(ip)->i_mode = 0;
129 switch (VFS_I(ip)->i_mode & S_IFMT) {
313 umode_t mode = inode->i_mode;
323 inode->i_mode = mode;
415 if (VFS_I(ip)->i_mode != 0) {
418 ip->i_ino, VFS_I(ip)->i_mode);
438 if (VFS_I(ip)->i_mode == 0)
797 if (xfs_iflags_test(ip, XFS_INEW) && VFS_I(ip)->i_mode != 0)
/linux-master/fs/xfs/scrub/
H A Dreaddir.c284 ASSERT(S_ISDIR(VFS_I(dp)->i_mode));
337 ASSERT(S_ISDIR(VFS_I(dp)->i_mode));
H A Ddir_repair.c418 xname.type = xfs_mode_to_ftype(VFS_I(ip)->i_mode);
692 ASSERT(S_ISDIR(VFS_I(dp)->i_mode));
716 ASSERT(S_ISDIR(VFS_I(dp)->i_mode));
1099 .type = xfs_mode_to_ftype(VFS_I(ip)->i_mode),
1196 if (S_ISDIR(VFS_I(ip)->i_mode) && xfs_need_iread_extents(&ip->i_df)) {
1239 if (S_ISDIR(VFS_I(ip)->i_mode)) {
1518 ASSERT(S_ISDIR(VFS_I(dp)->i_mode));
/linux-master/fs/hostfs/
H A Dhostfs_kern.c564 ino->i_mode = st->mode;
790 if (S_ISCHR(ino->i_mode) || S_ISBLK(ino->i_mode) ||
791 S_ISFIFO(ino->i_mode) || S_ISSOCK(ino->i_mode))
954 if (S_ISLNK(root_inode->i_mode)) {
/linux-master/fs/hfsplus/
H A Dxattr.c269 if ((!S_ISREG(inode->i_mode) &&
270 !S_ISDIR(inode->i_mode)) ||
497 if ((!S_ISREG(inode->i_mode) &&
498 !S_ISDIR(inode->i_mode)) ||
682 if ((!S_ISREG(inode->i_mode) &&
683 !S_ISDIR(inode->i_mode)) ||
/linux-master/drivers/target/
H A Dtarget_core_file.c94 if (S_ISBLK(inode->i_mode))
154 if (S_ISBLK(inode->i_mode)) {
352 if (S_ISBLK(file_inode(fd)->i_mode)) {
549 if (S_ISBLK(inode->i_mode)) {
815 if (S_ISBLK(i->i_mode))
838 if (S_ISBLK(inode->i_mode)) {
/linux-master/fs/ext4/
H A Dinode.c155 return (S_ISLNK(inode->i_mode) && inode->i_blocks - ea_blocks == 0);
157 return S_ISLNK(inode->i_mode) && inode->i_size &&
400 if (IS_ENCRYPTED(inode) && S_ISREG(inode->i_mode))
3787 if (S_ISREG(inode->i_mode))
3789 if (S_ISDIR(inode->i_mode))
3791 if (S_ISLNK(inode->i_mode))
4235 raw_inode->i_mode = cpu_to_le16(inode->i_mode);
4278 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) {
[all...]
H A Dioctl.c393 if (inode->i_nlink != 1 || !S_ISREG(inode->i_mode) ||
434 if (is_bad_inode(inode_bl) || !S_ISREG(inode_bl->i_mode)) {
444 inode_bl->i_mode = S_IFREG;
552 if (S_ISDIR(inode->i_mode))
567 if (S_ISDIR(inode->i_mode)) {
624 if (!S_ISDIR(inode->i_mode)) {
641 if (S_ISREG(inode->i_mode) && !IS_IMMUTABLE(inode) &&
989 if (S_ISREG(inode->i_mode))
1016 if (ext4_mask_flags(inode->i_mode, flags) != flags)
H A Dorphan.c125 ASSERT((S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) ||
126 S_ISLNK(inode->i_mode)) || inode->i_nlink == 0);
/linux-master/fs/smb/server/
H A Dvfs.c381 if (S_ISDIR(inode->i_mode))
613 if (S_ISDIR(d_inode(path->dentry)->i_mode)) {
1091 if (S_ISDIR(d_inode(dentry)->i_mode))
1496 if (S_ISDIR(inode->i_mode))
1558 if (S_ISDIR(inode->i_mode))
1886 acl_state.owner.allow = (inode->i_mode & 0700) >> 6;
1887 acl_state.group.allow = (inode->i_mode & 0070) >> 3;
1888 acl_state.other.allow = inode->i_mode & 0007;
1908 else if (S_ISDIR(inode->i_mode)) {
1949 if (S_ISDIR(inode->i_mode)) {
[all...]
/linux-master/fs/
H A Dlibfs.c207 fs_umode_to_dtype(d_inode(next)->i_mode)))
342 if (!inode || !S_ISDIR(inode->i_mode))
507 inode->i_ino, fs_umode_to_dtype(inode->i_mode));
671 root->i_mode = S_IFDIR | S_IRUSR | S_IWUSR;
1015 inode->i_mode = S_IFDIR | 0755;
1041 inode->i_mode = S_IFREG | files->mode;
1641 inode->i_mode = S_IRUSR | S_IWUSR;
1753 inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO;
2062 inode->i_mode = S_IFREG;
2072 WARN_ON_ONCE(!S_ISREG(inode->i_mode));
[all...]
H A Dposix_acl.c710 umode_t mode = inode->i_mode;
945 if (type == ACL_TYPE_DEFAULT && !S_ISDIR(inode->i_mode))
1024 &inode->i_mode, &acl);
1041 error = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl);
1187 if (S_ISLNK(inode->i_mode))
/linux-master/include/linux/
H A Dfs.h629 umode_t i_mode; member in struct:inode
1714 if (!S_ISREG(file_inode(file)->i_mode))
1729 if (!S_ISREG(file_inode(file)->i_mode))
2265 #define IS_WHITEOUT(inode) (S_ISCHR(inode->i_mode) && \
2835 return (inode->i_mode & S_IXUGO) || S_ISDIR(inode->i_mode);
2840 return (inode->i_mode ^ mode) & S_IFMT;
2852 if (!S_ISREG(file_inode(file)->i_mode))
2859 if (!S_ISREG(file_inode(file)->i_mode))
2872 if (!S_ISREG(file_inode(file)->i_mode))
[all...]
/linux-master/fs/orangefs/
H A Dinode.c834 ret = posix_acl_chmod(&nop_mnt_idmap, dentry, inode->i_mode);
984 switch (inode->i_mode & S_IFMT) {
1152 if (mode != inode->i_mode) {
1157 inode->i_mode = mode;
1159 __posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode);
/linux-master/kernel/bpf/
H A Dinode.c376 if ((dir->i_mode & S_IALLUGO) &&
734 umode_t mode = inode->i_mode & S_IALLUGO & ~S_ISVTX;
782 if (S_ISLNK(inode->i_mode))
1030 inode->i_mode &= ~S_IALLUGO;
1032 inode->i_mode |= S_ISVTX | opts->mode;
/linux-master/fs/befs/
H A Dlinuxvfs.c339 inode->i_mode = (umode_t) fs32_to_cpu(sb, raw_inode->mode);
375 if (S_ISLNK(inode->i_mode) && !(befs_ino->i_flags & BEFS_LONG_SYMLINK)){
394 if (S_ISREG(inode->i_mode)) {
396 } else if (S_ISDIR(inode->i_mode)) {
399 } else if (S_ISLNK(inode->i_mode)) {
/linux-master/fs/ntfs3/
H A Dfile.c376 if (!S_ISREG(inode->i_mode))
448 if (!S_ISREG(inode->i_mode))
689 umode_t mode = inode->i_mode;
725 if (mode != inode->i_mode) {
731 if (0222 & inode->i_mode)
/linux-master/security/landlock/
H A Dfs.c1127 get_mode_access(d_backing_inode(new_dentry)->i_mode);
1132 get_mode_access(d_backing_inode(old_dentry)->i_mode);
1478 if (S_ISDIR(file_inode(file)->i_mode))
1508 return S_ISBLK(inode->i_mode) || S_ISCHR(inode->i_mode);
/linux-master/fs/nfs/
H A Ddir.c686 S_ISDIR(dir->i_mode)) {
705 S_ISDIR(dir->i_mode)) {
1556 switch (inode->i_mode & S_IFMT) {
2037 if (S_ISREG(file_inode(file)->i_mode))
2165 !(S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)))
2167 else if (inode && S_ISREG(inode->i_mode))
2172 !(S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode))) {
2175 } else if (inode && S_ISREG(inode->i_mode)) {
[all...]
/linux-master/fs/isofs/
H A Drock.c386 inode->i_mode = isonum_733(rr->u.PX.mode);
525 inode->i_mode = reloc->i_mode;

Completed in 558 milliseconds

1234567891011>>