Lines Matching refs:ei
27 struct exfat_inode_info *ei = EXFAT_I(inode); in __exfat_write_inode() local
28 bool is_dir = (ei->type == TYPE_DIR) ? true : false; in __exfat_write_inode()
36 if (ei->dir.dir == DIR_DELETED) in __exfat_write_inode()
39 if (is_dir && ei->dir.dir == sbi->root_dir && ei->entry == -1) in __exfat_write_inode()
45 es = exfat_get_dentry_set(sb, &(ei->dir), ei->entry, ES_ALL_ENTRIES); in __exfat_write_inode()
54 exfat_set_entry_time(sbi, &ei->i_crtime, in __exfat_write_inode()
73 if (ei->start_clu == EXFAT_EOF_CLUSTER) in __exfat_write_inode()
113 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_map_cluster() local
130 *clu = last_clu = ei->start_clu; in exfat_map_cluster()
132 if (ei->flags == ALLOC_NO_FAT_CHAIN) { in exfat_map_cluster()
141 } else if (ei->type == TYPE_FILE) { in exfat_map_cluster()
151 if (clu_offset > 0 && ei->hint_bmap.off != EXFAT_EOF_CLUSTER && in exfat_map_cluster()
152 ei->hint_bmap.off > 0 && clu_offset >= ei->hint_bmap.off) { in exfat_map_cluster()
153 clu_offset -= ei->hint_bmap.off; in exfat_map_cluster()
155 WARN_ON(ei->hint_bmap.clu < 2); in exfat_map_cluster()
156 *clu = ei->hint_bmap.clu; in exfat_map_cluster()
173 new_clu.flags = ei->flags; in exfat_map_cluster()
197 ei->flags = ALLOC_FAT_CHAIN; in exfat_map_cluster()
198 ei->start_clu = new_clu.dir; in exfat_map_cluster()
201 if (new_clu.flags != ei->flags) { in exfat_map_cluster()
206 exfat_chain_cont_cluster(sb, ei->start_clu, in exfat_map_cluster()
208 ei->flags = ALLOC_FAT_CHAIN; in exfat_map_cluster()
219 if (ei->dir.dir != DIR_DELETED && modified) { in exfat_map_cluster()
224 es = exfat_get_dentry_set(sb, &(ei->dir), ei->entry, in exfat_map_cluster()
232 ep->dentry.stream.flags = ei->flags; in exfat_map_cluster()
234 cpu_to_le32(ei->start_clu); in exfat_map_cluster()
256 if (ei->flags == ALLOC_NO_FAT_CHAIN) { in exfat_map_cluster()
269 ei->hint_bmap.off = local_clu_offset; in exfat_map_cluster()
270 ei->hint_bmap.clu = *clu; in exfat_map_cluster()
275 static int exfat_map_new_buffer(struct exfat_inode_info *ei, in exfat_map_new_buffer() argument
278 if (buffer_delay(bh) && pos > ei->i_size_aligned) in exfat_map_new_buffer()
285 if (ei->i_size_ondisk > ei->i_size_aligned) in exfat_map_new_buffer()
286 ei->i_size_aligned = ei->i_size_ondisk; in exfat_map_new_buffer()
293 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_get_block() local
336 if (ei->i_size_ondisk < pos) in exfat_get_block()
337 ei->i_size_ondisk = pos; in exfat_get_block()
341 err = exfat_map_new_buffer(ei, bh_result, pos); in exfat_get_block()
345 pos, ei->i_size_aligned); in exfat_get_block()
413 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_write_end() local
428 if (!(err < 0) && !(ei->attr & ATTR_ARCHIVE)) { in exfat_write_end()
430 ei->attr |= ATTR_ARCHIVE; in exfat_write_end()
554 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_fill_inode() local
557 ei->dir = info->dir; in exfat_fill_inode()
558 ei->entry = info->entry; in exfat_fill_inode()
559 ei->attr = info->attr; in exfat_fill_inode()
560 ei->start_clu = info->start_clu; in exfat_fill_inode()
561 ei->flags = info->flags; in exfat_fill_inode()
562 ei->type = info->type; in exfat_fill_inode()
564 ei->version = 0; in exfat_fill_inode()
565 ei->hint_stat.eidx = 0; in exfat_fill_inode()
566 ei->hint_stat.clu = info->start_clu; in exfat_fill_inode()
567 ei->hint_femp.eidx = EXFAT_HINT_NONE; in exfat_fill_inode()
568 ei->hint_bmap.off = EXFAT_EOF_CLUSTER; in exfat_fill_inode()
569 ei->i_pos = 0; in exfat_fill_inode()
599 ei->i_size_aligned = size; in exfat_fill_inode()
600 ei->i_size_ondisk = size; in exfat_fill_inode()
608 ei->i_crtime = info->crtime; in exfat_fill_inode()