Lines Matching refs:ei
296 struct ext2_inode_info *ei = EXT2_I(inode); in ext2_find_near() local
297 __le32 *start = ind->bh ? (__le32 *) ind->bh->b_data : ei->i_data; in ext2_find_near()
315 bg_start = ext2_group_first_block_no(inode->i_sb, ei->i_block_group); in ext2_find_near()
636 struct ext2_inode_info *ei = EXT2_I(inode); in ext2_get_blocks() local
682 mutex_lock(&ei->truncate_mutex); in ext2_get_blocks()
703 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
708 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
717 if (S_ISREG(inode->i_mode) && (!ei->i_block_alloc_info)) in ext2_get_blocks()
737 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
758 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
765 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
1186 struct ext2_inode_info *ei = EXT2_I(inode); in __ext2_truncate_blocks() local
1199 WARN_ON(!rwsem_is_locked(&ei->dax_sem)); in __ext2_truncate_blocks()
1210 mutex_lock(&ei->truncate_mutex); in __ext2_truncate_blocks()
1269 mutex_unlock(&ei->truncate_mutex); in __ext2_truncate_blocks()
1405 struct ext2_inode_info *ei; in ext2_iget() local
1420 ei = EXT2_I(inode); in ext2_iget()
1421 ei->i_block_alloc_info = NULL; in ext2_iget()
1444 ei->i_dtime = le32_to_cpu(raw_inode->i_dtime); in ext2_iget()
1450 if (inode->i_nlink == 0 && (inode->i_mode == 0 || ei->i_dtime)) { in ext2_iget()
1456 ei->i_flags = le32_to_cpu(raw_inode->i_flags); in ext2_iget()
1458 ei->i_faddr = le32_to_cpu(raw_inode->i_faddr); in ext2_iget()
1459 ei->i_frag_no = raw_inode->i_frag; in ext2_iget()
1460 ei->i_frag_size = raw_inode->i_fsize; in ext2_iget()
1461 ei->i_file_acl = le32_to_cpu(raw_inode->i_file_acl); in ext2_iget()
1462 ei->i_dir_acl = 0; in ext2_iget()
1464 if (ei->i_file_acl && in ext2_iget()
1465 !ext2_data_block_valid(EXT2_SB(sb), ei->i_file_acl, 1)) { in ext2_iget()
1467 ei->i_file_acl); in ext2_iget()
1475 ei->i_dir_acl = le32_to_cpu(raw_inode->i_dir_acl); in ext2_iget()
1480 ei->i_dtime = 0; in ext2_iget()
1482 ei->i_state = 0; in ext2_iget()
1483 ei->i_block_group = (ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb); in ext2_iget()
1484 ei->i_dir_start_lookup = 0; in ext2_iget()
1491 ei->i_data[n] = raw_inode->i_block[n]; in ext2_iget()
1504 inode->i_link = (char *)ei->i_data; in ext2_iget()
1506 nd_terminate_link(ei->i_data, inode->i_size, in ext2_iget()
1507 sizeof(ei->i_data) - 1); in ext2_iget()
1537 struct ext2_inode_info *ei = EXT2_I(inode); in __ext2_write_inode() local
1552 if (ei->i_state & EXT2_STATE_NEW) in __ext2_write_inode()
1563 if (!ei->i_dtime) { in __ext2_write_inode()
1583 raw_inode->i_dtime = cpu_to_le32(ei->i_dtime); in __ext2_write_inode()
1584 raw_inode->i_flags = cpu_to_le32(ei->i_flags); in __ext2_write_inode()
1585 raw_inode->i_faddr = cpu_to_le32(ei->i_faddr); in __ext2_write_inode()
1586 raw_inode->i_frag = ei->i_frag_no; in __ext2_write_inode()
1587 raw_inode->i_fsize = ei->i_frag_size; in __ext2_write_inode()
1588 raw_inode->i_file_acl = cpu_to_le32(ei->i_file_acl); in __ext2_write_inode()
1590 raw_inode->i_dir_acl = cpu_to_le32(ei->i_dir_acl); in __ext2_write_inode()
1624 raw_inode->i_block[n] = ei->i_data[n]; in __ext2_write_inode()
1634 ei->i_state &= ~EXT2_STATE_NEW; in __ext2_write_inode()
1648 struct ext2_inode_info *ei = EXT2_I(inode); in ext2_getattr() local
1651 flags = ei->i_flags & EXT2_FL_USER_VISIBLE; in ext2_getattr()