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

1234567891011>>

/linux-master/fs/xfs/scrub/
H A Dreaddir.c283 ASSERT(S_ISDIR(VFS_I(dp)->i_mode));
334 ASSERT(S_ISDIR(VFS_I(dp)->i_mode));
/linux-master/fs/nilfs2/
H A Dnilfs.h201 if (S_ISLNK(inode->i_mode))
204 inode->i_mode &= ~current_umask();
/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)
799 if (xfs_iflags_test(ip, XFS_INEW) && VFS_I(ip)->i_mode != 0)
/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/hfsplus/
H A Dxattr.c269 if ((!S_ISREG(inode->i_mode) &&
270 !S_ISDIR(inode->i_mode)) ||
499 if ((!S_ISREG(inode->i_mode) &&
500 !S_ISDIR(inode->i_mode)) ||
684 if ((!S_ISREG(inode->i_mode) &&
685 !S_ISDIR(inode->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/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))
3794 if (S_ISREG(inode->i_mode))
3796 if (S_ISDIR(inode->i_mode))
3798 if (S_ISLNK(inode->i_mode))
4242 raw_inode->i_mode = cpu_to_le16(inode->i_mode);
4285 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);
H A Dmove_extent.c465 if (donor_inode->i_mode & (S_ISUID|S_ISGID)) {
583 if (!S_ISREG(orig_inode->i_mode) || !S_ISREG(donor_inode->i_mode)) {
/linux-master/fs/
H A Dlibfs.c207 fs_umode_to_dtype(d_inode(next)->i_mode)))
330 if (!inode || !S_ISDIR(inode->i_mode))
464 inode->i_ino, fs_umode_to_dtype(inode->i_mode));
628 root->i_mode = S_IFDIR | S_IRUSR | S_IWUSR;
972 inode->i_mode = S_IFDIR | 0755;
998 inode->i_mode = S_IFREG | files->mode;
1598 inode->i_mode = S_IRUSR | S_IWUSR;
1710 inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO;
2019 inode->i_mode = S_IFREG;
2029 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/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/include/linux/
H A Dfs.h633 umode_t i_mode; member in struct:inode
1723 if (!S_ISREG(file_inode(file)->i_mode))
1738 if (!S_ISREG(file_inode(file)->i_mode))
2266 #define IS_WHITEOUT(inode) (S_ISCHR(inode->i_mode) && \
2836 return (inode->i_mode & S_IXUGO) || S_ISDIR(inode->i_mode);
2841 return (inode->i_mode ^ mode) & S_IFMT;
2853 if (!S_ISREG(file_inode(file)->i_mode))
2860 if (!S_ISREG(file_inode(file)->i_mode))
2873 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))
680 umode_t mode = inode->i_mode;
716 if (mode != inode->i_mode) {
722 if (0222 & inode->i_mode)
/linux-master/fs/nfs/
H A Ddir.c684 S_ISDIR(dir->i_mode)) {
703 S_ISDIR(dir->i_mode)) {
1554 switch (inode->i_mode & S_IFMT) {
2035 if (S_ISREG(file_inode(file)->i_mode))
2163 !(S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)))
2165 else if (inode && S_ISREG(inode->i_mode))
2170 !(S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode))) {
2173 } 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;
/linux-master/security/apparmor/
H A Dfile.c441 d_backing_inode(old_dentry)->i_mode
495 .mode = file_inode(file)->i_mode
624 else if (S_ISSOCK(file_inode(file)->i_mode))
/linux-master/fs/affs/
H A Dnamei.c259 inode->i_mode = mode;
290 inode->i_mode = S_IFDIR | mode;
337 inode->i_mode = S_IFLNK | 0777;
/linux-master/drivers/android/
H A Dbinderfs.c264 if (!S_ISCHR(inode->i_mode) || !device)
474 ret->i_mode = mode;
703 inode->i_mode = S_IFDIR | 0755;
/linux-master/fs/sysv/
H A Ditree.c378 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) ||
379 S_ISLNK(inode->i_mode)))
/linux-master/fs/ocfs2/
H A Dfile.c216 ((inode->i_sb->s_flags & SB_NODIRATIME) && S_ISDIR(inode->i_mode)))
231 ((vfsmnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)))
1136 if (S_ISLNK(inode->i_mode))
1153 size_change = S_ISREG(inode->i_mode) && attr->ia_valid & ATTR_SIZE;
1379 inode->i_mode);
1395 inode->i_mode &= ~S_ISUID;
1396 if ((inode->i_mode & S_ISGID) && (inode->i_mode & S_IXGRP))
1397 inode->i_mode &= ~S_ISGID;
1400 di->i_mode
[all...]

Completed in 485 milliseconds

1234567891011>>