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()
634 struct ext2_inode_info *ei = EXT2_I(inode); in ext2_get_blocks() local
680 mutex_lock(&ei->truncate_mutex); in ext2_get_blocks()
701 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
706 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
715 if (S_ISREG(inode->i_mode) && (!ei->i_block_alloc_info)) in ext2_get_blocks()
735 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
756 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
763 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
1184 struct ext2_inode_info *ei = EXT2_I(inode); in __ext2_truncate_blocks() local
1197 WARN_ON(!rwsem_is_locked(&ei->dax_sem)); in __ext2_truncate_blocks()
1208 mutex_lock(&ei->truncate_mutex); in __ext2_truncate_blocks()
1265 mutex_unlock(&ei->truncate_mutex); in __ext2_truncate_blocks()
1401 struct ext2_inode_info *ei; in ext2_iget() local
1416 ei = EXT2_I(inode); in ext2_iget()
1417 ei->i_block_alloc_info = NULL; in ext2_iget()
1440 ei->i_dtime = le32_to_cpu(raw_inode->i_dtime); in ext2_iget()
1446 if (inode->i_nlink == 0 && (inode->i_mode == 0 || ei->i_dtime)) { in ext2_iget()
1453 ei->i_flags = le32_to_cpu(raw_inode->i_flags); in ext2_iget()
1455 ei->i_faddr = le32_to_cpu(raw_inode->i_faddr); in ext2_iget()
1456 ei->i_frag_no = raw_inode->i_frag; in ext2_iget()
1457 ei->i_frag_size = raw_inode->i_fsize; in ext2_iget()
1458 ei->i_file_acl = le32_to_cpu(raw_inode->i_file_acl); in ext2_iget()
1459 ei->i_dir_acl = 0; in ext2_iget()
1461 if (ei->i_file_acl && in ext2_iget()
1462 !ext2_data_block_valid(EXT2_SB(sb), ei->i_file_acl, 1)) { in ext2_iget()
1464 ei->i_file_acl); in ext2_iget()
1473 ei->i_dir_acl = le32_to_cpu(raw_inode->i_dir_acl); in ext2_iget()
1478 ei->i_dtime = 0; in ext2_iget()
1480 ei->i_state = 0; in ext2_iget()
1481 ei->i_block_group = (ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb); in ext2_iget()
1482 ei->i_dir_start_lookup = 0; in ext2_iget()
1489 ei->i_data[n] = raw_inode->i_block[n]; in ext2_iget()
1502 inode->i_link = (char *)ei->i_data; in ext2_iget()
1504 nd_terminate_link(ei->i_data, inode->i_size, in ext2_iget()
1505 sizeof(ei->i_data) - 1); in ext2_iget()
1534 struct ext2_inode_info *ei = EXT2_I(inode); in __ext2_write_inode() local
1549 if (ei->i_state & EXT2_STATE_NEW) in __ext2_write_inode()
1560 if (!ei->i_dtime) { in __ext2_write_inode()
1580 raw_inode->i_dtime = cpu_to_le32(ei->i_dtime); in __ext2_write_inode()
1581 raw_inode->i_flags = cpu_to_le32(ei->i_flags); in __ext2_write_inode()
1582 raw_inode->i_faddr = cpu_to_le32(ei->i_faddr); in __ext2_write_inode()
1583 raw_inode->i_frag = ei->i_frag_no; in __ext2_write_inode()
1584 raw_inode->i_fsize = ei->i_frag_size; in __ext2_write_inode()
1585 raw_inode->i_file_acl = cpu_to_le32(ei->i_file_acl); in __ext2_write_inode()
1587 raw_inode->i_dir_acl = cpu_to_le32(ei->i_dir_acl); in __ext2_write_inode()
1621 raw_inode->i_block[n] = ei->i_data[n]; in __ext2_write_inode()
1631 ei->i_state &= ~EXT2_STATE_NEW; in __ext2_write_inode()