Lines Matching refs:i_mode
199 inode->i_mode = mode; in hfs_new_inode()
215 inode->i_mode |= S_IRWXUGO; in hfs_new_inode()
216 inode->i_mode &= ~HFS_SB(inode->i_sb)->s_dir_umask; in hfs_new_inode()
225 inode->i_mode |= S_IRUGO|S_IXUGO; in hfs_new_inode()
227 inode->i_mode |= S_IWUGO; in hfs_new_inode()
228 inode->i_mode &= ~HFS_SB(inode->i_sb)->s_file_umask; in hfs_new_inode()
250 if (S_ISDIR(inode->i_mode)) { in hfs_delete_inode()
261 if (S_ISREG(inode->i_mode)) { in hfs_delete_inode()
356 inode->i_mode = S_IRUGO | S_IXUGO; in hfs_read_inode()
358 inode->i_mode |= S_IWUGO; in hfs_read_inode()
359 inode->i_mode &= ~hsb->s_file_umask; in hfs_read_inode()
360 inode->i_mode |= S_IFREG; in hfs_read_inode()
371 inode->i_mode = S_IFDIR | (S_IRWXUGO & ~hsb->s_dir_umask); in hfs_read_inode()
471 if (S_ISDIR(main_inode->i_mode)) { in hfs_write_inode()
503 if (inode->i_mode & S_IWUSR) in hfs_write_inode()
635 ((S_ISDIR(inode->i_mode) && in hfs_inode_setattr()
636 (attr->ia_mode != inode->i_mode)) || in hfs_inode_setattr()
644 attr->ia_mode = inode->i_mode | S_IWUGO; in hfs_inode_setattr()
646 attr->ia_mode = inode->i_mode & ~S_IWUGO; in hfs_inode_setattr()
647 attr->ia_mode &= S_ISDIR(inode->i_mode) ? ~hsb->s_dir_umask: ~hsb->s_file_umask; in hfs_inode_setattr()