Lines Matching refs:eti
273 struct extent_tree_info *eti = &sbi->extent_tree[et->type]; in __attach_extent_node() local
287 atomic_inc(&eti->total_ext_node); in __attach_extent_node()
294 struct extent_tree_info *eti = &sbi->extent_tree[et->type]; in __detach_extent_node() local
298 atomic_dec(&eti->total_ext_node); in __detach_extent_node()
314 struct extent_tree_info *eti = &sbi->extent_tree[et->type]; in __release_extent_node() local
316 spin_lock(&eti->extent_lock); in __release_extent_node()
319 spin_unlock(&eti->extent_lock); in __release_extent_node()
328 struct extent_tree_info *eti = &sbi->extent_tree[type]; in __grab_extent_tree() local
332 mutex_lock(&eti->extent_tree_lock); in __grab_extent_tree()
333 et = radix_tree_lookup(&eti->extent_tree_root, ino); in __grab_extent_tree()
337 f2fs_radix_tree_insert(&eti->extent_tree_root, ino, et); in __grab_extent_tree()
346 atomic_inc(&eti->total_ext_tree); in __grab_extent_tree()
348 atomic_dec(&eti->total_zombie_tree); in __grab_extent_tree()
351 mutex_unlock(&eti->extent_tree_lock); in __grab_extent_tree()
390 struct extent_tree_info *eti = &sbi->extent_tree[EX_READ]; in f2fs_init_read_extent_tree() local
423 spin_lock(&eti->extent_lock); in f2fs_init_read_extent_tree()
424 list_add_tail(&en->list, &eti->extent_list); in f2fs_init_read_extent_tree()
425 spin_unlock(&eti->extent_lock); in f2fs_init_read_extent_tree()
456 struct extent_tree_info *eti = &sbi->extent_tree[type]; in __lookup_extent_tree() local
487 spin_lock(&eti->extent_lock); in __lookup_extent_tree()
489 list_move_tail(&en->list, &eti->extent_list); in __lookup_extent_tree()
492 spin_unlock(&eti->extent_lock); in __lookup_extent_tree()
510 struct extent_tree_info *eti = &sbi->extent_tree[et->type]; in __try_merge_extent_node() local
535 spin_lock(&eti->extent_lock); in __try_merge_extent_node()
537 list_move_tail(&en->list, &eti->extent_list); in __try_merge_extent_node()
540 spin_unlock(&eti->extent_lock); in __try_merge_extent_node()
550 struct extent_tree_info *eti = &sbi->extent_tree[et->type]; in __insert_extent_tree() local
586 spin_lock(&eti->extent_lock); in __insert_extent_tree()
587 list_add_tail(&en->list, &eti->extent_list); in __insert_extent_tree()
589 spin_unlock(&eti->extent_lock); in __insert_extent_tree()
899 struct extent_tree_info *eti = &sbi->extent_tree[type]; in __shrink_extent_tree() local
905 if (!atomic_read(&eti->total_zombie_tree)) in __shrink_extent_tree()
908 if (!mutex_trylock(&eti->extent_tree_lock)) in __shrink_extent_tree()
912 list_for_each_entry_safe(et, next, &eti->zombie_list, list) { in __shrink_extent_tree()
920 radix_tree_delete(&eti->extent_tree_root, et->ino); in __shrink_extent_tree()
922 atomic_dec(&eti->total_ext_tree); in __shrink_extent_tree()
923 atomic_dec(&eti->total_zombie_tree); in __shrink_extent_tree()
930 mutex_unlock(&eti->extent_tree_lock); in __shrink_extent_tree()
934 if (!mutex_trylock(&eti->extent_tree_lock)) in __shrink_extent_tree()
939 spin_lock(&eti->extent_lock); in __shrink_extent_tree()
941 if (list_empty(&eti->extent_list)) in __shrink_extent_tree()
943 en = list_first_entry(&eti->extent_list, in __shrink_extent_tree()
948 list_move_tail(&en->list, &eti->extent_list); in __shrink_extent_tree()
953 spin_unlock(&eti->extent_lock); in __shrink_extent_tree()
959 spin_lock(&eti->extent_lock); in __shrink_extent_tree()
961 spin_unlock(&eti->extent_lock); in __shrink_extent_tree()
964 mutex_unlock(&eti->extent_tree_lock); in __shrink_extent_tree()
1112 struct extent_tree_info *eti = &sbi->extent_tree[type]; in __destroy_extent_tree() local
1121 mutex_lock(&eti->extent_tree_lock); in __destroy_extent_tree()
1122 list_add_tail(&et->list, &eti->zombie_list); in __destroy_extent_tree()
1123 atomic_inc(&eti->total_zombie_tree); in __destroy_extent_tree()
1124 mutex_unlock(&eti->extent_tree_lock); in __destroy_extent_tree()
1132 mutex_lock(&eti->extent_tree_lock); in __destroy_extent_tree()
1134 radix_tree_delete(&eti->extent_tree_root, inode->i_ino); in __destroy_extent_tree()
1136 atomic_dec(&eti->total_ext_tree); in __destroy_extent_tree()
1137 mutex_unlock(&eti->extent_tree_lock); in __destroy_extent_tree()
1150 static void __init_extent_tree_info(struct extent_tree_info *eti) in __init_extent_tree_info() argument
1152 INIT_RADIX_TREE(&eti->extent_tree_root, GFP_NOIO); in __init_extent_tree_info()
1153 mutex_init(&eti->extent_tree_lock); in __init_extent_tree_info()
1154 INIT_LIST_HEAD(&eti->extent_list); in __init_extent_tree_info()
1155 spin_lock_init(&eti->extent_lock); in __init_extent_tree_info()
1156 atomic_set(&eti->total_ext_tree, 0); in __init_extent_tree_info()
1157 INIT_LIST_HEAD(&eti->zombie_list); in __init_extent_tree_info()
1158 atomic_set(&eti->total_zombie_tree, 0); in __init_extent_tree_info()
1159 atomic_set(&eti->total_ext_node, 0); in __init_extent_tree_info()