Lines Matching refs:i_mode
21 i->i_mode = hpfs_sb(sb)->sb_mode; in hpfs_init_inode()
79 i->i_mode = S_IFLNK | 0777; in hpfs_read_inode()
97 i->i_mode = mode; in hpfs_read_inode()
118 i->i_mode |= S_IFDIR; in hpfs_read_inode()
133 i->i_mode |= S_IFREG; in hpfs_read_inode()
134 if (!hpfs_inode->i_ea_mode) i->i_mode &= ~0111; in hpfs_read_inode()
165 if (!S_ISLNK(i->i_mode)) in hpfs_write_inode_ea()
166 if ((i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0 : 0111)) in hpfs_write_inode_ea()
167 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG)) in hpfs_write_inode_ea()
168 && i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0222 : 0333)) in hpfs_write_inode_ea()
169 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG))) || hpfs_inode->i_ea_mode) { in hpfs_write_inode_ea()
170 ea = cpu_to_le32(i->i_mode); in hpfs_write_inode_ea()
175 if (S_ISBLK(i->i_mode) || S_ISCHR(i->i_mode)) { in hpfs_write_inode_ea()
224 if (S_ISREG(i->i_mode)) { in hpfs_write_inode_nolock()
227 } else if (S_ISDIR(i->i_mode)) { in hpfs_write_inode_nolock()
236 de->read_only = !(i->i_mode & 0222); in hpfs_write_inode_nolock()
241 if (S_ISDIR(i->i_mode)) { in hpfs_write_inode_nolock()
246 de->read_only = !(i->i_mode & 0222); in hpfs_write_inode_nolock()