Lines Matching full:ii
513 struct nilfs_inode_info *ii; in nilfs_segctor_end_finfo() local
520 ii = NILFS_I(inode); in nilfs_segctor_end_finfo()
522 if (ii->i_type & NILFS_I_TYPE_GC) in nilfs_segctor_end_finfo()
523 cno = ii->i_cno; in nilfs_segctor_end_finfo()
761 struct nilfs_inode_info *ii = NILFS_I(inode); in nilfs_lookup_dirty_node_buffers() local
762 struct inode *btnc_inode = ii->i_assoc_inode; in nilfs_lookup_dirty_node_buffers()
794 struct nilfs_inode_info *ii, *n; in nilfs_dispose_list() local
800 list_for_each_entry_safe(ii, n, head, i_dirty) { in nilfs_dispose_list()
801 list_del_init(&ii->i_dirty); in nilfs_dispose_list()
803 if (unlikely(ii->i_bh)) { in nilfs_dispose_list()
804 brelse(ii->i_bh); in nilfs_dispose_list()
805 ii->i_bh = NULL; in nilfs_dispose_list()
807 } else if (test_bit(NILFS_I_DIRTY, &ii->i_state)) { in nilfs_dispose_list()
808 set_bit(NILFS_I_QUEUED, &ii->i_state); in nilfs_dispose_list()
809 list_add_tail(&ii->i_dirty, in nilfs_dispose_list()
813 ivec[nv++] = ii; in nilfs_dispose_list()
884 struct nilfs_inode_info *ii) in nilfs_fill_in_file_bmap() argument
890 if (test_bit(NILFS_I_BMAP, &ii->i_state)) { in nilfs_fill_in_file_bmap()
891 ibh = ii->i_bh; in nilfs_fill_in_file_bmap()
893 raw_inode = nilfs_ifile_map_inode(ifile, ii->vfs_inode.i_ino, in nilfs_fill_in_file_bmap()
895 nilfs_bmap_write(ii->i_bmap, raw_inode); in nilfs_fill_in_file_bmap()
902 struct nilfs_inode_info *ii; in nilfs_segctor_fill_in_file_bmap() local
904 list_for_each_entry(ii, &sci->sc_dirty_files, i_dirty) { in nilfs_segctor_fill_in_file_bmap()
905 nilfs_fill_in_file_bmap(sci->sc_root->ifile, ii); in nilfs_segctor_fill_in_file_bmap()
906 set_bit(NILFS_I_COLLECTED, &ii->i_state); in nilfs_segctor_fill_in_file_bmap()
972 struct nilfs_inode_info *ii; in nilfs_redirty_inodes() local
974 list_for_each_entry(ii, head, i_dirty) { in nilfs_redirty_inodes()
975 if (test_bit(NILFS_I_COLLECTED, &ii->i_state)) in nilfs_redirty_inodes()
976 clear_bit(NILFS_I_COLLECTED, &ii->i_state); in nilfs_redirty_inodes()
982 struct nilfs_inode_info *ii; in nilfs_drop_collected_inodes() local
984 list_for_each_entry(ii, head, i_dirty) { in nilfs_drop_collected_inodes()
985 if (!test_and_clear_bit(NILFS_I_COLLECTED, &ii->i_state)) in nilfs_drop_collected_inodes()
988 clear_bit(NILFS_I_INODE_SYNC, &ii->i_state); in nilfs_drop_collected_inodes()
989 set_bit(NILFS_I_UPDATED, &ii->i_state); in nilfs_drop_collected_inodes()
1162 struct nilfs_inode_info *ii; in nilfs_segctor_collect_blocks() local
1190 ii = list_prepare_entry(sci->sc_stage.gc_inode_ptr, in nilfs_segctor_collect_blocks()
1192 list_for_each_entry_continue(ii, head, i_dirty) { in nilfs_segctor_collect_blocks()
1194 sci, &ii->vfs_inode, in nilfs_segctor_collect_blocks()
1198 ii->i_dirty.prev, in nilfs_segctor_collect_blocks()
1203 set_bit(NILFS_I_COLLECTED, &ii->i_state); in nilfs_segctor_collect_blocks()
1211 ii = list_prepare_entry(sci->sc_stage.dirty_file_ptr, head, in nilfs_segctor_collect_blocks()
1213 list_for_each_entry_continue(ii, head, i_dirty) { in nilfs_segctor_collect_blocks()
1214 clear_bit(NILFS_I_DIRTY, &ii->i_state); in nilfs_segctor_collect_blocks()
1216 err = nilfs_segctor_scan_file(sci, &ii->vfs_inode, in nilfs_segctor_collect_blocks()
1220 list_entry(ii->i_dirty.prev, in nilfs_segctor_collect_blocks()
1294 ii = sci->sc_dsync_inode; in nilfs_segctor_collect_blocks()
1295 if (!test_bit(NILFS_I_BUSY, &ii->i_state)) in nilfs_segctor_collect_blocks()
1298 err = nilfs_segctor_scan_file_dsync(sci, &ii->vfs_inode); in nilfs_segctor_collect_blocks()
2005 struct nilfs_inode_info *ii, *n; in nilfs_segctor_collect_dirty_files() local
2010 list_for_each_entry_safe(ii, n, &nilfs->ns_dirty_files, i_dirty) { in nilfs_segctor_collect_dirty_files()
2011 if (!ii->i_bh) { in nilfs_segctor_collect_dirty_files()
2017 ifile, ii->vfs_inode.i_ino, &ibh); in nilfs_segctor_collect_dirty_files()
2021 err, ii->vfs_inode.i_ino); in nilfs_segctor_collect_dirty_files()
2025 if (likely(!ii->i_bh)) in nilfs_segctor_collect_dirty_files()
2026 ii->i_bh = ibh; in nilfs_segctor_collect_dirty_files()
2033 mark_buffer_dirty(ii->i_bh); in nilfs_segctor_collect_dirty_files()
2036 clear_bit(NILFS_I_QUEUED, &ii->i_state); in nilfs_segctor_collect_dirty_files()
2037 set_bit(NILFS_I_BUSY, &ii->i_state); in nilfs_segctor_collect_dirty_files()
2038 list_move_tail(&ii->i_dirty, &sci->sc_dirty_files); in nilfs_segctor_collect_dirty_files()
2048 struct nilfs_inode_info *ii, *n; in nilfs_segctor_drop_written_files() local
2053 list_for_each_entry_safe(ii, n, &sci->sc_dirty_files, i_dirty) { in nilfs_segctor_drop_written_files()
2054 if (!test_and_clear_bit(NILFS_I_UPDATED, &ii->i_state) || in nilfs_segctor_drop_written_files()
2055 test_bit(NILFS_I_DIRTY, &ii->i_state)) in nilfs_segctor_drop_written_files()
2058 clear_bit(NILFS_I_BUSY, &ii->i_state); in nilfs_segctor_drop_written_files()
2059 brelse(ii->i_bh); in nilfs_segctor_drop_written_files()
2060 ii->i_bh = NULL; in nilfs_segctor_drop_written_files()
2061 list_del_init(&ii->i_dirty); in nilfs_segctor_drop_written_files()
2062 if (!ii->vfs_inode.i_nlink || during_mount) { in nilfs_segctor_drop_written_files()
2067 list_add_tail(&ii->i_dirty, &sci->sc_iput_queue); in nilfs_segctor_drop_written_files()
2071 iput(&ii->vfs_inode); in nilfs_segctor_drop_written_files()
2368 struct nilfs_inode_info *ii; in nilfs_construct_dsync_segment() local
2377 ii = NILFS_I(inode); in nilfs_construct_dsync_segment()
2378 if (test_bit(NILFS_I_INODE_SYNC, &ii->i_state) || in nilfs_construct_dsync_segment()
2388 if (!test_bit(NILFS_I_QUEUED, &ii->i_state) && in nilfs_construct_dsync_segment()
2389 !test_bit(NILFS_I_BUSY, &ii->i_state)) { in nilfs_construct_dsync_segment()
2395 sci->sc_dsync_inode = ii; in nilfs_construct_dsync_segment()
2513 struct nilfs_inode_info *ii, *n; in nilfs_remove_written_gcinodes() local
2515 list_for_each_entry_safe(ii, n, head, i_dirty) { in nilfs_remove_written_gcinodes()
2516 if (!test_bit(NILFS_I_UPDATED, &ii->i_state)) in nilfs_remove_written_gcinodes()
2518 list_del_init(&ii->i_dirty); in nilfs_remove_written_gcinodes()
2519 truncate_inode_pages(&ii->vfs_inode.i_data, 0); in nilfs_remove_written_gcinodes()
2520 nilfs_btnode_cache_clear(ii->i_assoc_inode->i_mapping); in nilfs_remove_written_gcinodes()
2521 iput(&ii->vfs_inode); in nilfs_remove_written_gcinodes()