Home
last modified time | relevance | path

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

/fs/f2fs/
Dextent_cache.c26 struct extent_tree *et = fi->extent_tree[EX_READ]; in sanity_check_extent_cache() local
29 if (!et) in sanity_check_extent_cache()
32 ei = &et->largest; in sanity_check_extent_cache()
39 et->largest_updated = true; in sanity_check_extent_cache()
115 static void __try_update_largest_extent(struct extent_tree *et, in __try_update_largest_extent() argument
118 if (et->type != EX_READ) in __try_update_largest_extent()
120 if (en->ei.len <= et->largest.len) in __try_update_largest_extent()
123 et->largest = en->ei; in __try_update_largest_extent()
124 et->largest_updated = true; in __try_update_largest_extent()
269 struct extent_tree *et, struct extent_info *ei, in __attach_extent_node() argument
[all …]
Dinode.c608 struct extent_tree *et = F2FS_I(inode)->extent_tree[EX_READ]; in f2fs_update_inode() local
628 if (et) { in f2fs_update_inode()
629 read_lock(&et->lock); in f2fs_update_inode()
630 set_raw_read_extent(&et->largest, &ri->i_ext); in f2fs_update_inode()
631 read_unlock(&et->lock); in f2fs_update_inode()
Df2fs.h651 struct extent_tree *et; /* extent tree pointer */ member
/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.c1126 struct ocfs2_extent_tree et; in ocfs2_write_cluster() local
1158 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), in ocfs2_write_cluster()
1160 ret = ocfs2_mark_extent_written(inode, &et, in ocfs2_write_cluster()
1660 struct ocfs2_extent_tree et; in ocfs2_write_begin_nolock() local
1739 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), in ocfs2_write_begin_nolock()
1741 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.c543 struct ocfs2_extent_tree et; in ocfs2_add_inode_data() local
545 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), fe_bh); in ocfs2_add_inode_data()
546 return ocfs2_add_clusters_in_btree(handle, &et, logical_offset, in ocfs2_add_inode_data()
565 struct ocfs2_extent_tree et; in ocfs2_extend_allocation() local
584 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), bh); in ocfs2_extend_allocation()
585 status = ocfs2_lock_allocators(inode, &et, clusters_to_add, 0, in ocfs2_extend_allocation()
1768 struct ocfs2_extent_tree et; in ocfs2_remove_inode_range() local
1775 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh); in ocfs2_remove_inode_range()
1834 path = ocfs2_new_path_from_et(&et); in ocfs2_remove_inode_range()
1896 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()