Lines Matching refs:i_mode
197 inode->i_mode = mode; in hfs_new_inode()
212 inode->i_mode |= S_IRWXUGO; in hfs_new_inode()
213 inode->i_mode &= ~HFS_SB(inode->i_sb)->s_dir_umask; in hfs_new_inode()
222 inode->i_mode |= S_IRUGO|S_IXUGO; in hfs_new_inode()
224 inode->i_mode |= S_IWUGO; in hfs_new_inode()
225 inode->i_mode &= ~HFS_SB(inode->i_sb)->s_file_umask; in hfs_new_inode()
247 if (S_ISDIR(inode->i_mode)) { in hfs_delete_inode()
258 if (S_ISREG(inode->i_mode)) { in hfs_delete_inode()
351 inode->i_mode = S_IRUGO | S_IXUGO; in hfs_read_inode()
353 inode->i_mode |= S_IWUGO; in hfs_read_inode()
354 inode->i_mode &= ~hsb->s_file_umask; in hfs_read_inode()
355 inode->i_mode |= S_IFREG; in hfs_read_inode()
366 inode->i_mode = S_IFDIR | (S_IRWXUGO & ~hsb->s_dir_umask); in hfs_read_inode()
464 if (S_ISDIR(main_inode->i_mode)) { in hfs_write_inode()
492 if (inode->i_mode & S_IWUSR) in hfs_write_inode()
623 ((S_ISDIR(inode->i_mode) && in hfs_inode_setattr()
624 (attr->ia_mode != inode->i_mode)) || in hfs_inode_setattr()
632 attr->ia_mode = inode->i_mode | S_IWUGO; in hfs_inode_setattr()
634 attr->ia_mode = inode->i_mode & ~S_IWUGO; in hfs_inode_setattr()
635 attr->ia_mode &= S_ISDIR(inode->i_mode) ? ~hsb->s_dir_umask: ~hsb->s_file_umask; in hfs_inode_setattr()