Lines Matching refs:i_mode
53 return (S_ISLNK(inode->i_mode) && in ext2_inode_is_fast_symlink()
534 if (S_ISDIR(inode->i_mode) && IS_DIRSYNC(inode)) in ext2_alloc_branch()
718 if (S_ISREG(inode->i_mode) && (!ei->i_block_alloc_info)) in ext2_get_blocks()
1255 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext2_truncate_blocks()
1256 S_ISLNK(inode->i_mode))) in ext2_truncate_blocks()
1270 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in ext2_setsize()
1271 S_ISLNK(inode->i_mode))) in ext2_setsize()
1364 if (test_opt(inode->i_sb, DAX) && S_ISREG(inode->i_mode)) in ext2_set_inode_flags()
1404 inode->i_mode = le16_to_cpu(raw_inode->i_mode); in ext2_iget()
1425 if (inode->i_nlink == 0 && (inode->i_mode == 0 || ei->i_dtime)) { in ext2_iget()
1447 if (S_ISREG(inode->i_mode)) in ext2_iget()
1468 if (S_ISREG(inode->i_mode)) { in ext2_iget()
1470 } else if (S_ISDIR(inode->i_mode)) { in ext2_iget()
1474 } else if (S_ISLNK(inode->i_mode)) { in ext2_iget()
1488 init_special_inode(inode, inode->i_mode, in ext2_iget()
1491 init_special_inode(inode, inode->i_mode, in ext2_iget()
1524 raw_inode->i_mode = cpu_to_le16(inode->i_mode); in __ext2_write_inode()
1558 if (!S_ISREG(inode->i_mode)) in __ext2_write_inode()
1581 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { in __ext2_write_inode()
1667 error = posix_acl_chmod(&nop_mnt_idmap, dentry, inode->i_mode); in ext2_setattr()