Lines Matching refs:i_mode
20 i->i_mode = hpfs_sb(sb)->sb_mode; in hpfs_init_inode()
78 i->i_mode = S_IFLNK | 0777; in hpfs_read_inode()
95 i->i_mode = mode; in hpfs_read_inode()
116 i->i_mode |= S_IFDIR; in hpfs_read_inode()
131 i->i_mode |= S_IFREG; in hpfs_read_inode()
132 if (!hpfs_inode->i_ea_mode) i->i_mode &= ~0111; in hpfs_read_inode()
163 if (!S_ISLNK(i->i_mode)) in hpfs_write_inode_ea()
164 if ((i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0 : 0111)) in hpfs_write_inode_ea()
165 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG)) in hpfs_write_inode_ea()
166 && i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0222 : 0333)) in hpfs_write_inode_ea()
167 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG))) || hpfs_inode->i_ea_mode) { in hpfs_write_inode_ea()
168 ea = cpu_to_le32(i->i_mode); in hpfs_write_inode_ea()
173 if (S_ISBLK(i->i_mode) || S_ISCHR(i->i_mode)) { in hpfs_write_inode_ea()
222 if (S_ISREG(i->i_mode)) { in hpfs_write_inode_nolock()
225 } else if (S_ISDIR(i->i_mode)) { in hpfs_write_inode_nolock()
234 de->read_only = !(i->i_mode & 0222); in hpfs_write_inode_nolock()
239 if (S_ISDIR(i->i_mode)) { in hpfs_write_inode_nolock()
244 de->read_only = !(i->i_mode & 0222); in hpfs_write_inode_nolock()