Home
last modified time | relevance | path

Searched refs:et (Results 1 – 14 of 14) sorted by relevance

/fs/f2fs/
Dextent_cache.c236 struct extent_tree *et, struct extent_info *ei, in __attach_extent_node() argument
248 en->et = et; in __attach_extent_node()
251 rb_insert_color_cached(&en->rb_node, &et->root, leftmost); in __attach_extent_node()
252 atomic_inc(&et->node_cnt); in __attach_extent_node()
258 struct extent_tree *et, struct extent_node *en) in __detach_extent_node() argument
260 rb_erase_cached(&en->rb_node, &et->root); in __detach_extent_node()
261 atomic_dec(&et->node_cnt); in __detach_extent_node()
264 if (et->cached_en == en) in __detach_extent_node()
265 et->cached_en = NULL; in __detach_extent_node()
276 struct extent_tree *et, struct extent_node *en) in __release_extent_node() argument
[all …]
Dinode.c588 struct extent_tree *et = F2FS_I(inode)->extent_tree; in f2fs_update_inode() local
608 if (et) { in f2fs_update_inode()
609 read_lock(&et->lock); in f2fs_update_inode()
610 set_raw_extent(&et->largest, &ri->i_ext); in f2fs_update_inode()
611 read_unlock(&et->lock); in f2fs_update_inode()
Df2fs.h628 struct extent_tree *et; /* extent tree pointer */ member
899 static inline void __try_update_largest_extent(struct extent_tree *et, in __try_update_largest_extent() argument
902 if (en->ei.len > et->largest.len) { in __try_update_largest_extent()
903 et->largest = en->ei; in __try_update_largest_extent()
904 et->largest_updated = true; in __try_update_largest_extent()
/fs/ocfs2/
Dalloc.c69 void (*eo_set_last_eb_blk)(struct ocfs2_extent_tree *et,
71 u64 (*eo_get_last_eb_blk)(struct ocfs2_extent_tree *et);
79 void (*eo_update_clusters)(struct ocfs2_extent_tree *et,
86 void (*eo_extent_map_insert)(struct ocfs2_extent_tree *et,
93 void (*eo_extent_map_truncate)(struct ocfs2_extent_tree *et,
100 int (*eo_insert_check)(struct ocfs2_extent_tree *et,
102 int (*eo_sanity_check)(struct ocfs2_extent_tree *et);
114 void (*eo_fill_root_el)(struct ocfs2_extent_tree *et);
121 void (*eo_fill_max_leaf_clusters)(struct ocfs2_extent_tree *et);
129 (*eo_extent_contig)(struct ocfs2_extent_tree *et,
[all …]
Dalloc.h55 void ocfs2_init_dinode_extent_tree(struct ocfs2_extent_tree *et,
58 void ocfs2_init_xattr_tree_extent_tree(struct ocfs2_extent_tree *et,
62 void ocfs2_init_xattr_value_extent_tree(struct ocfs2_extent_tree *et,
65 void ocfs2_init_dx_root_extent_tree(struct ocfs2_extent_tree *et,
68 void ocfs2_init_refcount_extent_tree(struct ocfs2_extent_tree *et,
82 struct ocfs2_extent_tree *et,
95 struct ocfs2_extent_tree *et,
105 struct ocfs2_extent_tree *et,
112 struct ocfs2_extent_tree *et,
117 struct ocfs2_extent_tree *et,
[all …]
Dmove_extents.c43 struct ocfs2_extent_tree et; member
60 u64 ino = ocfs2_metadata_cache_owner(context->et.et_ci); in __ocfs2_move_extent()
76 path = ocfs2_new_path_from_et(&context->et); in __ocfs2_move_extent()
108 ret = ocfs2_split_extent(handle, &context->et, path, index, in __ocfs2_move_extent()
144 struct ocfs2_extent_tree *et, in ocfs2_lock_meta_allocator_move_extents() argument
155 num_free_extents = ocfs2_num_free_extents(et); in ocfs2_lock_meta_allocator_move_extents()
164 extra_blocks += ocfs2_extend_meta_needed(et->et_root_el); in ocfs2_lock_meta_allocator_move_extents()
173 *credits += ocfs2_calc_extend_credits(osb->sb, et->et_root_el); in ocfs2_lock_meta_allocator_move_extents()
231 ret = ocfs2_lock_meta_allocator_move_extents(inode, &context->et, in ocfs2_defrag_extent()
605 ret = ocfs2_lock_meta_allocator_move_extents(inode, &context->et, in ocfs2_move_extent()
[all …]
Drefcounttree.c967 struct ocfs2_extent_tree et; in ocfs2_get_refcount_cpos_end() local
994 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_get_refcount_cpos_end()
996 left_path = ocfs2_new_path_from_et(&et); in ocfs2_get_refcount_cpos_end()
1029 subtree_root = ocfs2_find_subtree_root(&et, left_path, in ocfs2_get_refcount_cpos_end()
1659 struct ocfs2_extent_tree et; in ocfs2_adjust_refcount_rec() local
1673 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_adjust_refcount_rec()
1675 path = ocfs2_new_path_from_et(&et); in ocfs2_adjust_refcount_rec()
2083 struct ocfs2_extent_tree et; in ocfs2_remove_refcount_extent() local
2092 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_remove_refcount_extent()
2093 ret = ocfs2_remove_extent(handle, &et, le32_to_cpu(rb->rf_cpos), in ocfs2_remove_refcount_extent()
[all …]
Daops.c1127 struct ocfs2_extent_tree et; in ocfs2_write_cluster() local
1159 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), in ocfs2_write_cluster()
1161 ret = ocfs2_mark_extent_written(inode, &et, in ocfs2_write_cluster()
1661 struct ocfs2_extent_tree et; in ocfs2_write_begin_nolock() local
1740 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), in ocfs2_write_begin_nolock()
1742 ret = ocfs2_lock_allocators(inode, &et, in ocfs2_write_begin_nolock()
2299 struct ocfs2_extent_tree et; in ocfs2_dio_end_io_write() local
2342 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh); in ocfs2_dio_end_io_write()
2348 et.et_dealloc = &dealloc; in ocfs2_dio_end_io_write()
2350 ret = ocfs2_lock_allocators(inode, &et, 0, dwc->dw_zero_count*2, in ocfs2_dio_end_io_write()
[all …]
Ddir.c2468 struct ocfs2_extent_tree *et, in ocfs2_dx_dir_new_cluster() argument
2485 ret = ocfs2_insert_extent(handle, et, cpos, phys_blkno, 1, 0, in ocfs2_dx_dir_new_cluster()
2784 struct ocfs2_extent_tree et; in ocfs2_expand_inline_dir() local
2788 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(dir), di_bh); in ocfs2_expand_inline_dir()
2976 ret = ocfs2_insert_extent(handle, &et, 0, blkno, len, in ocfs2_expand_inline_dir()
3027 ret = ocfs2_insert_extent(handle, &et, 1, in ocfs2_expand_inline_dir()
3164 struct ocfs2_extent_tree et; in ocfs2_extend_dir() local
3222 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(dir), in ocfs2_extend_dir()
3224 num_free_extents = ocfs2_num_free_extents(&et); in ocfs2_extend_dir()
3698 struct ocfs2_extent_tree et; in ocfs2_dx_dir_rebalance() local
[all …]
Dfile.c544 struct ocfs2_extent_tree et; in ocfs2_add_inode_data() local
546 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), fe_bh); in ocfs2_add_inode_data()
547 ret = ocfs2_add_clusters_in_btree(handle, &et, logical_offset, in ocfs2_add_inode_data()
568 struct ocfs2_extent_tree et; in ocfs2_extend_allocation() local
587 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), bh); in ocfs2_extend_allocation()
588 status = ocfs2_lock_allocators(inode, &et, clusters_to_add, 0, in ocfs2_extend_allocation()
1771 struct ocfs2_extent_tree et; in ocfs2_remove_inode_range() local
1778 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh); in ocfs2_remove_inode_range()
1837 path = ocfs2_new_path_from_et(&et); in ocfs2_remove_inode_range()
1899 ret = ocfs2_remove_btree_range(inode, &et, trunc_cpos, in ocfs2_remove_inode_range()
Dxattr.c708 struct ocfs2_extent_tree et; in ocfs2_xattr_extend_allocation() local
710 ocfs2_init_xattr_value_extent_tree(&et, INODE_CACHE(inode), vb); in ocfs2_xattr_extend_allocation()
724 &et, in ocfs2_xattr_extend_allocation()
772 struct ocfs2_extent_tree et; in __ocfs2_remove_xattr_range() local
774 ocfs2_init_xattr_value_extent_tree(&et, INODE_CACHE(inode), vb); in __ocfs2_remove_xattr_range()
783 ret = ocfs2_remove_extent(handle, &et, cpos, len, ctxt->meta_ac, in __ocfs2_remove_xattr_range()
5109 struct ocfs2_extent_tree et; in ocfs2_add_new_xattr_cluster() local
5116 ocfs2_init_xattr_tree_extent_tree(&et, INODE_CACHE(inode), root_bh); in ocfs2_add_new_xattr_cluster()
5169 ret = ocfs2_insert_extent(handle, &et, v_start, block, in ocfs2_add_new_xattr_cluster()
5430 struct ocfs2_extent_tree et; in ocfs2_rm_xattr_cluster() local
[all …]
Dsuballoc.h197 int ocfs2_lock_allocators(struct inode *inode, struct ocfs2_extent_tree *et,
Dsuballoc.c2621 struct ocfs2_extent_tree *et, in ocfs2_lock_allocators() argument
2636 num_free_extents = ocfs2_num_free_extents(et); in ocfs2_lock_allocators()
2658 ret = ocfs2_reserve_new_metadata(osb, et->et_root_el, meta_ac); in ocfs2_lock_allocators()
/fs/ext4/
Dextents.c64 struct ext4_extent_tail *et; in ext4_extent_block_csum_verify() local
69 et = find_ext4_extent_tail(eh); in ext4_extent_block_csum_verify()
70 if (et->et_checksum != ext4_extent_block_csum(inode, eh)) in ext4_extent_block_csum_verify()
78 struct ext4_extent_tail *et; in ext4_extent_block_csum_set() local
83 et = find_ext4_extent_tail(eh); in ext4_extent_block_csum_set()
84 et->et_checksum = ext4_extent_block_csum(inode, eh); in ext4_extent_block_csum_set()