Lines Matching refs:ei
201 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_reset_inode() local
203 ei->i_fc_lblk_start = 0; in ext4_fc_reset_inode()
204 ei->i_fc_lblk_len = 0; in ext4_fc_reset_inode()
209 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_init_inode() local
213 INIT_LIST_HEAD(&ei->i_fc_list); in ext4_fc_init_inode()
214 init_waitqueue_head(&ei->i_fc_wait); in ext4_fc_init_inode()
215 atomic_set(&ei->i_fc_updates, 0); in ext4_fc_init_inode()
223 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_wait_committing_inode() local
226 DEFINE_WAIT_BIT(wait, &ei->i_state_flags, in ext4_fc_wait_committing_inode()
228 wq = bit_waitqueue(&ei->i_state_flags, in ext4_fc_wait_committing_inode()
231 DEFINE_WAIT_BIT(wait, &ei->i_flags, in ext4_fc_wait_committing_inode()
233 wq = bit_waitqueue(&ei->i_flags, in ext4_fc_wait_committing_inode()
252 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_start_update() local
260 if (list_empty(&ei->i_fc_list)) in ext4_fc_start_update()
268 atomic_inc(&ei->i_fc_updates); in ext4_fc_start_update()
277 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_stop_update() local
283 if (atomic_dec_and_test(&ei->i_fc_updates)) in ext4_fc_stop_update()
284 wake_up_all(&ei->i_fc_wait); in ext4_fc_stop_update()
293 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_del() local
301 if (list_empty(&ei->i_fc_list)) { in ext4_fc_del()
310 list_del_init(&ei->i_fc_list); in ext4_fc_del()
385 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_track_template() local
398 mutex_lock(&ei->i_fc_lock); in ext4_fc_track_template()
399 if (tid == ei->i_sync_tid) { in ext4_fc_track_template()
403 ei->i_sync_tid = tid; in ext4_fc_track_template()
406 mutex_unlock(&ei->i_fc_lock); in ext4_fc_track_template()
431 struct ext4_inode_info *ei = EXT4_I(inode); in __track_dentry_update() local
437 mutex_unlock(&ei->i_fc_lock); in __track_dentry_update()
441 mutex_lock(&ei->i_fc_lock); in __track_dentry_update()
454 mutex_lock(&ei->i_fc_lock); in __track_dentry_update()
473 mutex_lock(&ei->i_fc_lock); in __track_dentry_update()
570 struct ext4_inode_info *ei = EXT4_I(inode); in __track_range() local
580 oldstart = ei->i_fc_lblk_start; in __track_range()
582 if (update && ei->i_fc_lblk_len > 0) { in __track_range()
583 ei->i_fc_lblk_start = min(ei->i_fc_lblk_start, __arg->start); in __track_range()
584 ei->i_fc_lblk_len = in __track_range()
585 max(oldstart + ei->i_fc_lblk_len - 1, __arg->end) - in __track_range()
586 ei->i_fc_lblk_start + 1; in __track_range()
588 ei->i_fc_lblk_start = __arg->start; in __track_range()
589 ei->i_fc_lblk_len = __arg->end - __arg->start + 1; in __track_range()
810 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_write_inode() local
825 inode_len += ei->i_extra_isize; in ext4_fc_write_inode()
856 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_write_inode_data() local
863 mutex_lock(&ei->i_fc_lock); in ext4_fc_write_inode_data()
864 if (ei->i_fc_lblk_len == 0) { in ext4_fc_write_inode_data()
865 mutex_unlock(&ei->i_fc_lock); in ext4_fc_write_inode_data()
868 old_blk_size = ei->i_fc_lblk_start; in ext4_fc_write_inode_data()
869 new_blk_size = ei->i_fc_lblk_start + ei->i_fc_lblk_len - 1; in ext4_fc_write_inode_data()
870 ei->i_fc_lblk_len = 0; in ext4_fc_write_inode_data()
871 mutex_unlock(&ei->i_fc_lock); in ext4_fc_write_inode_data()
929 struct ext4_inode_info *ei; in ext4_fc_submit_inode_data_all() local
934 list_for_each_entry(ei, &sbi->s_fc_q[FC_Q_MAIN], i_fc_list) { in ext4_fc_submit_inode_data_all()
935 ext4_set_inode_state(&ei->vfs_inode, EXT4_STATE_FC_COMMITTING); in ext4_fc_submit_inode_data_all()
936 while (atomic_read(&ei->i_fc_updates)) { in ext4_fc_submit_inode_data_all()
939 prepare_to_wait(&ei->i_fc_wait, &wait, in ext4_fc_submit_inode_data_all()
941 if (atomic_read(&ei->i_fc_updates)) { in ext4_fc_submit_inode_data_all()
946 finish_wait(&ei->i_fc_wait, &wait); in ext4_fc_submit_inode_data_all()
949 ret = jbd2_submit_inode_data(ei->jinode); in ext4_fc_submit_inode_data_all()
993 struct ext4_inode_info *ei, *ei_n; in ext4_fc_commit_dentry_updates() local
1011 list_for_each_entry_safe(ei, ei_n, &sbi->s_fc_q[FC_Q_MAIN], in ext4_fc_commit_dentry_updates()
1013 if (ei->vfs_inode.i_ino == fc_dentry->fcd_ino) { in ext4_fc_commit_dentry_updates()
1014 inode = &ei->vfs_inode; in ext4_fc_commit_dentry_updates()