• Home
  • Raw
  • Download

Lines Matching refs:ei

150 static int es_reclaim_extents(struct ext4_inode_info *ei, int *nr_to_scan);
425 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_add() local
428 if (!list_empty(&ei->i_es_list)) in ext4_es_list_add()
432 if (list_empty(&ei->i_es_list)) { in ext4_es_list_add()
433 list_add_tail(&ei->i_es_list, &sbi->s_es_list); in ext4_es_list_add()
441 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_del() local
445 if (!list_empty(&ei->i_es_list)) { in ext4_es_list_del()
446 list_del_init(&ei->i_es_list); in ext4_es_list_del()
1469 struct ext4_inode_info *ei; in __es_shrink() local
1488 ei = list_first_entry(&sbi->s_es_list, struct ext4_inode_info, in __es_shrink()
1491 list_move_tail(&ei->i_es_list, &sbi->s_es_list); in __es_shrink()
1497 if (!retried && ext4_test_inode_state(&ei->vfs_inode, in __es_shrink()
1503 if (ei == locked_ei || !write_trylock(&ei->i_es_lock)) { in __es_shrink()
1513 nr_shrunk += es_reclaim_extents(ei, &nr_to_scan); in __es_shrink()
1514 write_unlock(&ei->i_es_lock); in __es_shrink()
1588 struct ext4_inode_info *ei, *max = NULL; in ext4_seq_es_shrinker_info_show() local
1596 list_for_each_entry(ei, &sbi->s_es_list, i_es_list) { in ext4_seq_es_shrinker_info_show()
1598 if (max && max->i_es_all_nr < ei->i_es_all_nr) in ext4_seq_es_shrinker_info_show()
1599 max = ei; in ext4_seq_es_shrinker_info_show()
1601 max = ei; in ext4_seq_es_shrinker_info_show()
1690 static int es_do_reclaim_extents(struct ext4_inode_info *ei, ext4_lblk_t end, in es_do_reclaim_extents() argument
1693 struct inode *inode = &ei->vfs_inode; in es_do_reclaim_extents()
1694 struct ext4_es_tree *tree = &ei->i_es_tree; in es_do_reclaim_extents()
1698 es = __es_tree_search(&tree->root, ei->i_es_shrink_lblk); in es_do_reclaim_extents()
1704 ei->i_es_shrink_lblk = end + 1; in es_do_reclaim_extents()
1729 ei->i_es_shrink_lblk = es->es_lblk; in es_do_reclaim_extents()
1732 ei->i_es_shrink_lblk = 0; in es_do_reclaim_extents()
1736 static int es_reclaim_extents(struct ext4_inode_info *ei, int *nr_to_scan) in es_reclaim_extents() argument
1738 struct inode *inode = &ei->vfs_inode; in es_reclaim_extents()
1740 ext4_lblk_t start = ei->i_es_shrink_lblk; in es_reclaim_extents()
1744 if (ei->i_es_shk_nr == 0) in es_reclaim_extents()
1751 if (!es_do_reclaim_extents(ei, EXT_MAX_BLOCKS, nr_to_scan, &nr_shrunk) && in es_reclaim_extents()
1753 es_do_reclaim_extents(ei, start - 1, nr_to_scan, &nr_shrunk); in es_reclaim_extents()
1755 ei->i_es_tree.cache_es = NULL; in es_reclaim_extents()
1766 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_clear_inode_es() local
1771 write_lock(&ei->i_es_lock); in ext4_clear_inode_es()
1784 write_unlock(&ei->i_es_lock); in ext4_clear_inode_es()
1943 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_remove_pending() local
1945 write_lock(&ei->i_es_lock); in ext4_remove_pending()
1947 write_unlock(&ei->i_es_lock); in ext4_remove_pending()
1963 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_is_pending() local
1966 read_lock(&ei->i_es_lock); in ext4_is_pending()
1968 read_unlock(&ei->i_es_lock); in ext4_is_pending()
2098 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_delayed_clu() local
2108 read_lock(&ei->i_es_lock); in ext4_es_delayed_clu()
2112 read_unlock(&ei->i_es_lock); in ext4_es_delayed_clu()