Lines Matching refs:i_mode
192 inode->i_mode = mode; in hfs_new_inode()
207 inode->i_mode |= S_IRWXUGO; in hfs_new_inode()
208 inode->i_mode &= ~HFS_SB(inode->i_sb)->s_dir_umask; in hfs_new_inode()
217 inode->i_mode |= S_IRUGO|S_IXUGO; in hfs_new_inode()
219 inode->i_mode |= S_IWUGO; in hfs_new_inode()
220 inode->i_mode &= ~HFS_SB(inode->i_sb)->s_file_umask; in hfs_new_inode()
242 if (S_ISDIR(inode->i_mode)) { in hfs_delete_inode()
253 if (S_ISREG(inode->i_mode)) { in hfs_delete_inode()
345 inode->i_mode = S_IRUGO | S_IXUGO; in hfs_read_inode()
347 inode->i_mode |= S_IWUGO; in hfs_read_inode()
348 inode->i_mode &= ~hsb->s_file_umask; in hfs_read_inode()
349 inode->i_mode |= S_IFREG; in hfs_read_inode()
360 inode->i_mode = S_IFDIR | (S_IRWXUGO & ~hsb->s_dir_umask); in hfs_read_inode()
458 if (S_ISDIR(main_inode->i_mode)) { in hfs_write_inode()
488 if (inode->i_mode & S_IWUSR) in hfs_write_inode()
617 ((S_ISDIR(inode->i_mode) && in hfs_inode_setattr()
618 (attr->ia_mode != inode->i_mode)) || in hfs_inode_setattr()
626 attr->ia_mode = inode->i_mode | S_IWUGO; in hfs_inode_setattr()
628 attr->ia_mode = inode->i_mode & ~S_IWUGO; in hfs_inode_setattr()
629 attr->ia_mode &= S_ISDIR(inode->i_mode) ? ~hsb->s_dir_umask: ~hsb->s_file_umask; in hfs_inode_setattr()