Lines Matching refs:ex

221 		struct ext4_extent *ex;  in ext4_ext_find_goal()  local
240 ex = path[depth].p_ext; in ext4_ext_find_goal()
241 if (ex) { in ext4_ext_find_goal()
242 ext4_fsblk_t ext_pblk = ext4_ext_pblock(ex); in ext4_ext_find_goal()
243 ext4_lblk_t ext_block = le32_to_cpu(ex->ee_block); in ext4_ext_find_goal()
267 struct ext4_extent *ex, int *err, unsigned int flags) in ext4_ext_new_meta_block() argument
271 goal = ext4_ext_find_goal(inode, path, le32_to_cpu(ex->ee_block)); in ext4_ext_new_meta_block()
530 struct ext4_extent *ex = EXT_FIRST_EXTENT(eh); in ext4_cache_extents() local
534 for (i = le16_to_cpu(eh->eh_entries); i > 0; i--, ex++) { in ext4_cache_extents()
536 ext4_lblk_t lblk = le32_to_cpu(ex->ee_block); in ext4_cache_extents()
537 int len = ext4_ext_get_actual_len(ex); in ext4_cache_extents()
543 if (ext4_ext_is_unwritten(ex)) in ext4_cache_extents()
546 ext4_ext_pblock(ex), status); in ext4_cache_extents()
692 struct ext4_extent *ex; in ext4_ext_show_leaf() local
699 ex = EXT_FIRST_EXTENT(eh); in ext4_ext_show_leaf()
703 for (i = 0; i < le16_to_cpu(eh->eh_entries); i++, ex++) { in ext4_ext_show_leaf()
704 ext_debug(inode, "%d:[%d]%d:%llu ", le32_to_cpu(ex->ee_block), in ext4_ext_show_leaf()
705 ext4_ext_is_unwritten(ex), in ext4_ext_show_leaf()
706 ext4_ext_get_actual_len(ex), ext4_ext_pblock(ex)); in ext4_ext_show_leaf()
715 struct ext4_extent *ex; in ext4_ext_show_move() local
730 ex = path[depth].p_ext; in ext4_ext_show_move()
731 while (ex <= EXT_MAX_EXTENT(path[depth].p_hdr)) { in ext4_ext_show_move()
733 le32_to_cpu(ex->ee_block), in ext4_ext_show_move()
734 ext4_ext_pblock(ex), in ext4_ext_show_move()
735 ext4_ext_is_unwritten(ex), in ext4_ext_show_move()
736 ext4_ext_get_actual_len(ex), in ext4_ext_show_move()
738 ex++; in ext4_ext_show_move()
855 struct ext4_extent *chex, *ex; in ext4_ext_binsearch() local
858 chex = ex = EXT_FIRST_EXTENT(eh); in ext4_ext_binsearch()
859 for (k = 0; k < le16_to_cpu(eh->eh_entries); k++, ex++) { in ext4_ext_binsearch()
860 BUG_ON(k && le32_to_cpu(ex->ee_block) in ext4_ext_binsearch()
861 <= le32_to_cpu(ex[-1].ee_block)); in ext4_ext_binsearch()
862 if (block < le32_to_cpu(ex->ee_block)) in ext4_ext_binsearch()
864 chex = ex; in ext4_ext_binsearch()
1158 struct ext4_extent *ex; in ext4_ext_split() local
1159 ex = EXT_FIRST_EXTENT(neh); in ext4_ext_split()
1160 memmove(ex, path[depth].p_ext, sizeof(struct ext4_extent) * m); in ext4_ext_split()
1471 struct ext4_extent *ex; in ext4_ext_search_left() local
1488 ex = path[depth].p_ext; in ext4_ext_search_left()
1489 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_search_left()
1490 if (*logical < le32_to_cpu(ex->ee_block)) { in ext4_ext_search_left()
1491 if (unlikely(EXT_FIRST_EXTENT(path[depth].p_hdr) != ex)) { in ext4_ext_search_left()
1494 *logical, le32_to_cpu(ex->ee_block)); in ext4_ext_search_left()
1511 if (unlikely(*logical < (le32_to_cpu(ex->ee_block) + ee_len))) { in ext4_ext_search_left()
1514 *logical, le32_to_cpu(ex->ee_block), ee_len); in ext4_ext_search_left()
1518 *logical = le32_to_cpu(ex->ee_block) + ee_len - 1; in ext4_ext_search_left()
1519 *phys = ext4_ext_pblock(ex) + ee_len - 1; in ext4_ext_search_left()
1538 struct ext4_extent *ex; in ext4_ext_search_right() local
1556 ex = path[depth].p_ext; in ext4_ext_search_right()
1557 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_search_right()
1558 if (*logical < le32_to_cpu(ex->ee_block)) { in ext4_ext_search_right()
1559 if (unlikely(EXT_FIRST_EXTENT(path[depth].p_hdr) != ex)) { in ext4_ext_search_right()
1577 if (unlikely(*logical < (le32_to_cpu(ex->ee_block) + ee_len))) { in ext4_ext_search_right()
1580 *logical, le32_to_cpu(ex->ee_block), ee_len); in ext4_ext_search_right()
1584 if (ex != EXT_LAST_EXTENT(path[depth].p_hdr)) { in ext4_ext_search_right()
1586 ex++; in ext4_ext_search_right()
1619 ex = EXT_FIRST_EXTENT(eh); in ext4_ext_search_right()
1621 *logical = le32_to_cpu(ex->ee_block); in ext4_ext_search_right()
1622 *phys = ext4_ext_pblock(ex); in ext4_ext_search_right()
1624 *ret_ex = *ex; in ext4_ext_search_right()
1706 struct ext4_extent *ex; in ext4_ext_correct_indexes() local
1711 ex = path[depth].p_ext; in ext4_ext_correct_indexes()
1713 if (unlikely(ex == NULL || eh == NULL)) { in ext4_ext_correct_indexes()
1715 "ex %p == NULL or eh %p == NULL", ex, eh); in ext4_ext_correct_indexes()
1724 if (ex != EXT_FIRST_EXTENT(eh)) { in ext4_ext_correct_indexes()
1810 struct ext4_extent *ex) in ext4_ext_try_to_merge_right() argument
1820 while (ex < EXT_LAST_EXTENT(eh)) { in ext4_ext_try_to_merge_right()
1821 if (!ext4_can_extents_be_merged(inode, ex, ex + 1)) in ext4_ext_try_to_merge_right()
1824 unwritten = ext4_ext_is_unwritten(ex); in ext4_ext_try_to_merge_right()
1825 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_try_to_merge_right()
1826 + ext4_ext_get_actual_len(ex + 1)); in ext4_ext_try_to_merge_right()
1828 ext4_ext_mark_unwritten(ex); in ext4_ext_try_to_merge_right()
1830 if (ex + 1 < EXT_LAST_EXTENT(eh)) { in ext4_ext_try_to_merge_right()
1831 len = (EXT_LAST_EXTENT(eh) - ex - 1) in ext4_ext_try_to_merge_right()
1833 memmove(ex + 1, ex + 2, len); in ext4_ext_try_to_merge_right()
1898 struct ext4_extent *ex) in ext4_ext_try_to_merge() argument
1908 if (ex > EXT_FIRST_EXTENT(eh)) in ext4_ext_try_to_merge()
1909 merge_done = ext4_ext_try_to_merge_right(inode, path, ex - 1); in ext4_ext_try_to_merge()
1912 (void) ext4_ext_try_to_merge_right(inode, path, ex); in ext4_ext_try_to_merge()
1980 struct ext4_extent *ex, *fex; in ext4_ext_insert_extent() local
1994 ex = path[depth].p_ext; in ext4_ext_insert_extent()
2003 if (ex && !(gb_flags & EXT4_GET_BLOCKS_PRE_IO)) { in ext4_ext_insert_extent()
2012 if (ex < EXT_LAST_EXTENT(eh) && in ext4_ext_insert_extent()
2013 (le32_to_cpu(ex->ee_block) + in ext4_ext_insert_extent()
2014 ext4_ext_get_actual_len(ex) < in ext4_ext_insert_extent()
2016 ex += 1; in ext4_ext_insert_extent()
2018 } else if ((ex > EXT_FIRST_EXTENT(eh)) && in ext4_ext_insert_extent()
2021 le32_to_cpu(ex->ee_block))) in ext4_ext_insert_extent()
2022 ex -= 1; in ext4_ext_insert_extent()
2025 if (ext4_can_extents_be_merged(inode, ex, newext)) { in ext4_ext_insert_extent()
2030 le32_to_cpu(ex->ee_block), in ext4_ext_insert_extent()
2031 ext4_ext_is_unwritten(ex), in ext4_ext_insert_extent()
2032 ext4_ext_get_actual_len(ex), in ext4_ext_insert_extent()
2033 ext4_ext_pblock(ex)); in ext4_ext_insert_extent()
2038 unwritten = ext4_ext_is_unwritten(ex); in ext4_ext_insert_extent()
2039 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_insert_extent()
2042 ext4_ext_mark_unwritten(ex); in ext4_ext_insert_extent()
2043 nearex = ex; in ext4_ext_insert_extent()
2049 if (ext4_can_extents_be_merged(inode, newext, ex)) { in ext4_ext_insert_extent()
2055 le32_to_cpu(ex->ee_block), in ext4_ext_insert_extent()
2056 ext4_ext_is_unwritten(ex), in ext4_ext_insert_extent()
2057 ext4_ext_get_actual_len(ex), in ext4_ext_insert_extent()
2058 ext4_ext_pblock(ex)); in ext4_ext_insert_extent()
2064 unwritten = ext4_ext_is_unwritten(ex); in ext4_ext_insert_extent()
2065 ex->ee_block = newext->ee_block; in ext4_ext_insert_extent()
2066 ext4_ext_store_pblock(ex, ext4_ext_pblock(newext)); in ext4_ext_insert_extent()
2067 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_insert_extent()
2070 ext4_ext_mark_unwritten(ex); in ext4_ext_insert_extent()
2071 nearex = ex; in ext4_ext_insert_extent()
2265 struct ext4_extent *ex; in ext4_ext_find_hole() local
2268 ex = path[depth].p_ext; in ext4_ext_find_hole()
2269 if (ex == NULL) { in ext4_ext_find_hole()
2273 } else if (*lblk < le32_to_cpu(ex->ee_block)) { in ext4_ext_find_hole()
2274 len = le32_to_cpu(ex->ee_block) - *lblk; in ext4_ext_find_hole()
2275 } else if (*lblk >= le32_to_cpu(ex->ee_block) in ext4_ext_find_hole()
2276 + ext4_ext_get_actual_len(ex)) { in ext4_ext_find_hole()
2279 *lblk = le32_to_cpu(ex->ee_block) + ext4_ext_get_actual_len(ex); in ext4_ext_find_hole()
2457 struct ext4_extent *ex, in ext4_remove_blocks() argument
2462 unsigned short ee_len = ext4_ext_get_actual_len(ex); in ext4_remove_blocks()
2468 if (from < le32_to_cpu(ex->ee_block) || in ext4_remove_blocks()
2469 to != le32_to_cpu(ex->ee_block) + ee_len - 1) { in ext4_remove_blocks()
2472 from, to, le32_to_cpu(ex->ee_block), ee_len); in ext4_remove_blocks()
2489 trace_ext4_remove_blocks(inode, ex, from, to, partial); in ext4_remove_blocks()
2495 last_pblk = ext4_ext_pblock(ex) + ee_len - 1; in ext4_remove_blocks()
2512 num = le32_to_cpu(ex->ee_block) + ee_len - from; in ext4_remove_blocks()
2513 pblk = ext4_ext_pblock(ex) + ee_len - num; in ext4_remove_blocks()
2606 struct ext4_extent *ex; in ext4_ext_rm_leaf() local
2619 ex = path[depth].p_ext; in ext4_ext_rm_leaf()
2620 if (!ex) in ext4_ext_rm_leaf()
2621 ex = EXT_LAST_EXTENT(eh); in ext4_ext_rm_leaf()
2623 ex_ee_block = le32_to_cpu(ex->ee_block); in ext4_ext_rm_leaf()
2624 ex_ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_rm_leaf()
2626 trace_ext4_ext_rm_leaf(inode, start, ex, partial); in ext4_ext_rm_leaf()
2628 while (ex >= EXT_FIRST_EXTENT(eh) && in ext4_ext_rm_leaf()
2631 if (ext4_ext_is_unwritten(ex)) in ext4_ext_rm_leaf()
2638 path[depth].p_ext = ex; in ext4_ext_rm_leaf()
2655 pblk = ext4_ext_pblock(ex); in ext4_ext_rm_leaf()
2659 ex--; in ext4_ext_rm_leaf()
2660 ex_ee_block = le32_to_cpu(ex->ee_block); in ext4_ext_rm_leaf()
2661 ex_ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_rm_leaf()
2685 if (ex == EXT_FIRST_EXTENT(eh)) { in ext4_ext_rm_leaf()
2712 err = ext4_remove_blocks(handle, inode, ex, partial, a, b); in ext4_ext_rm_leaf()
2718 ext4_ext_store_pblock(ex, 0); in ext4_ext_rm_leaf()
2720 ex->ee_len = cpu_to_le16(num); in ext4_ext_rm_leaf()
2726 ext4_ext_mark_unwritten(ex); in ext4_ext_rm_leaf()
2738 memmove(ex, ex+1, (EXT_LAST_EXTENT(eh) - ex) * in ext4_ext_rm_leaf()
2753 ext4_ext_pblock(ex)); in ext4_ext_rm_leaf()
2754 ex--; in ext4_ext_rm_leaf()
2755 ex_ee_block = le32_to_cpu(ex->ee_block); in ext4_ext_rm_leaf()
2756 ex_ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_rm_leaf()
2769 if (partial->state == tofree && ex >= EXT_FIRST_EXTENT(eh)) { in ext4_ext_rm_leaf()
2770 pblk = ext4_ext_pblock(ex) + ex_ee_len - 1; in ext4_ext_rm_leaf()
2849 struct ext4_extent *ex; in ext4_ext_remove_space() local
2862 ex = path[depth].p_ext; in ext4_ext_remove_space()
2863 if (!ex) { in ext4_ext_remove_space()
2873 ee_block = le32_to_cpu(ex->ee_block); in ext4_ext_remove_space()
2874 ex_end = ee_block + ext4_ext_get_actual_len(ex) - 1; in ext4_ext_remove_space()
2890 pblk = ext4_ext_pblock(ex) + end - ee_block + 1; in ext4_ext_remove_space()
3127 static void ext4_zeroout_es(struct inode *inode, struct ext4_extent *ex) in ext4_zeroout_es() argument
3133 ee_block = le32_to_cpu(ex->ee_block); in ext4_zeroout_es()
3134 ee_len = ext4_ext_get_actual_len(ex); in ext4_zeroout_es()
3135 ee_pblock = ext4_ext_pblock(ex); in ext4_zeroout_es()
3145 static int ext4_ext_zeroout(struct inode *inode, struct ext4_extent *ex) in ext4_ext_zeroout() argument
3150 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_zeroout()
3151 ee_pblock = ext4_ext_pblock(ex); in ext4_ext_zeroout()
3152 return ext4_issue_zeroout(inode, le32_to_cpu(ex->ee_block), ee_pblock, in ext4_ext_zeroout()
3185 struct ext4_extent *ex, newex, orig_ex, zero_ex; in ext4_split_extent_at() local
3198 ex = path[depth].p_ext; in ext4_split_extent_at()
3199 ee_block = le32_to_cpu(ex->ee_block); in ext4_split_extent_at()
3200 ee_len = ext4_ext_get_actual_len(ex); in ext4_split_extent_at()
3201 newblock = split - ee_block + ext4_ext_pblock(ex); in ext4_split_extent_at()
3204 BUG_ON(!ext4_ext_is_unwritten(ex) && in ext4_split_extent_at()
3220 ext4_ext_mark_unwritten(ex); in ext4_split_extent_at()
3222 ext4_ext_mark_initialized(ex); in ext4_split_extent_at()
3225 ext4_ext_try_to_merge(handle, inode, path, ex); in ext4_split_extent_at()
3232 memcpy(&orig_ex, ex, sizeof(orig_ex)); in ext4_split_extent_at()
3233 ex->ee_len = cpu_to_le16(split - ee_block); in ext4_split_extent_at()
3235 ext4_ext_mark_unwritten(ex); in ext4_split_extent_at()
3275 ex = path[depth].p_ext; in ext4_split_extent_at()
3287 err = ext4_ext_zeroout(inode, ex); in ext4_split_extent_at()
3288 zero_ex.ee_block = ex->ee_block; in ext4_split_extent_at()
3290 ext4_ext_get_actual_len(ex)); in ext4_split_extent_at()
3292 ext4_ext_pblock(ex)); in ext4_split_extent_at()
3305 ex->ee_len = cpu_to_le16(ee_len); in ext4_split_extent_at()
3306 ext4_ext_try_to_merge(handle, inode, path, ex); in ext4_split_extent_at()
3321 ex->ee_len = orig_ex.ee_len; in ext4_split_extent_at()
3355 struct ext4_extent *ex; in ext4_split_extent() local
3361 ex = path[depth].p_ext; in ext4_split_extent()
3362 ee_block = le32_to_cpu(ex->ee_block); in ext4_split_extent()
3363 ee_len = ext4_ext_get_actual_len(ex); in ext4_split_extent()
3364 unwritten = ext4_ext_is_unwritten(ex); in ext4_split_extent()
3386 ex = path[depth].p_ext; in ext4_split_extent()
3387 if (!ex) { in ext4_split_extent()
3393 unwritten = ext4_ext_is_unwritten(ex); in ext4_split_extent()
3448 struct ext4_extent *ex, *abut_ex; in ext4_ext_convert_to_initialized() local
3466 ex = path[depth].p_ext; in ext4_ext_convert_to_initialized()
3467 ee_block = le32_to_cpu(ex->ee_block); in ext4_ext_convert_to_initialized()
3468 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_convert_to_initialized()
3472 trace_ext4_ext_convert_to_initialized_enter(inode, map, ex); in ext4_ext_convert_to_initialized()
3475 BUG_ON(!ext4_ext_is_unwritten(ex)); in ext4_ext_convert_to_initialized()
3497 (ex > EXT_FIRST_EXTENT(eh))) { /*L2*/ in ext4_ext_convert_to_initialized()
3502 abut_ex = ex - 1; in ext4_ext_convert_to_initialized()
3506 ee_pblk = ext4_ext_pblock(ex); in ext4_ext_convert_to_initialized()
3526 map, ex, abut_ex); in ext4_ext_convert_to_initialized()
3529 ex->ee_block = cpu_to_le32(ee_block + map_len); in ext4_ext_convert_to_initialized()
3530 ext4_ext_store_pblock(ex, ee_pblk + map_len); in ext4_ext_convert_to_initialized()
3531 ex->ee_len = cpu_to_le16(ee_len - map_len); in ext4_ext_convert_to_initialized()
3532 ext4_ext_mark_unwritten(ex); /* Restore the flag */ in ext4_ext_convert_to_initialized()
3542 ex < EXT_LAST_EXTENT(eh)) { /*L2*/ in ext4_ext_convert_to_initialized()
3548 abut_ex = ex + 1; in ext4_ext_convert_to_initialized()
3552 ee_pblk = ext4_ext_pblock(ex); in ext4_ext_convert_to_initialized()
3572 map, ex, abut_ex); in ext4_ext_convert_to_initialized()
3577 ex->ee_len = cpu_to_le16(ee_len - map_len); in ext4_ext_convert_to_initialized()
3578 ext4_ext_mark_unwritten(ex); /* Restore the flag */ in ext4_ext_convert_to_initialized()
3633 ext4_ext_pblock(ex) + split_map.m_lblk + in ext4_ext_convert_to_initialized()
3644 zero_ex2.ee_block = ex->ee_block; in ext4_ext_convert_to_initialized()
3648 ext4_ext_pblock(ex)); in ext4_ext_convert_to_initialized()
3710 struct ext4_extent *ex; in ext4_split_convert_extents() local
3726 ex = path[depth].p_ext; in ext4_split_convert_extents()
3727 ee_block = le32_to_cpu(ex->ee_block); in ext4_split_convert_extents()
3728 ee_len = ext4_ext_get_actual_len(ex); in ext4_split_convert_extents()
3749 struct ext4_extent *ex; in ext4_convert_unwritten_extents_endio() local
3756 ex = path[depth].p_ext; in ext4_convert_unwritten_extents_endio()
3757 ee_block = le32_to_cpu(ex->ee_block); in ext4_convert_unwritten_extents_endio()
3758 ee_len = ext4_ext_get_actual_len(ex); in ext4_convert_unwritten_extents_endio()
3785 ex = path[depth].p_ext; in ext4_convert_unwritten_extents_endio()
3792 ext4_ext_mark_initialized(ex); in ext4_convert_unwritten_extents_endio()
3797 ext4_ext_try_to_merge(handle, inode, path, ex); in ext4_convert_unwritten_extents_endio()
3818 struct ext4_extent *ex; in convert_initialized_extent() local
3832 ex = path[depth].p_ext; in convert_initialized_extent()
3833 ee_block = le32_to_cpu(ex->ee_block); in convert_initialized_extent()
3834 ee_len = ext4_ext_get_actual_len(ex); in convert_initialized_extent()
3849 ex = path[depth].p_ext; in convert_initialized_extent()
3850 if (!ex) { in convert_initialized_extent()
3862 ext4_ext_mark_unwritten(ex); in convert_initialized_extent()
3867 ext4_ext_try_to_merge(handle, inode, path, ex); in convert_initialized_extent()
4043 struct ext4_extent *ex, in get_implied_cluster_alloc() argument
4050 ext4_lblk_t ee_block = le32_to_cpu(ex->ee_block); in get_implied_cluster_alloc()
4051 ext4_fsblk_t ee_start = ext4_ext_pblock(ex); in get_implied_cluster_alloc()
4052 unsigned short ee_len = ext4_ext_get_actual_len(ex); in get_implied_cluster_alloc()
4192 struct ext4_extent newex, *ex, ex2; in ext4_ext_map_blocks() local
4227 ex = path[depth].p_ext; in ext4_ext_map_blocks()
4228 if (ex) { in ext4_ext_map_blocks()
4229 ext4_lblk_t ee_block = le32_to_cpu(ex->ee_block); in ext4_ext_map_blocks()
4230 ext4_fsblk_t ee_start = ext4_ext_pblock(ex); in ext4_ext_map_blocks()
4238 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_map_blocks()
4254 if ((!ext4_ext_is_unwritten(ex)) && in ext4_ext_map_blocks()
4261 } else if (!ext4_ext_is_unwritten(ex)) { in ext4_ext_map_blocks()
4304 if (cluster_offset && ex && in ext4_ext_map_blocks()
4305 get_implied_cluster_alloc(inode->i_sb, map, ex, path)) { in ext4_ext_map_blocks()
5910 struct ext4_extent *ex; in ext4_ext_replay_update_ex() local
5916 ex = path[path->p_depth].p_ext; in ext4_ext_replay_update_ex()
5917 if (!ex) { in ext4_ext_replay_update_ex()
5922 if (le32_to_cpu(ex->ee_block) != start || in ext4_ext_replay_update_ex()
5923 ext4_ext_get_actual_len(ex) != len) { in ext4_ext_replay_update_ex()
5937 ex = path[path->p_depth].p_ext; in ext4_ext_replay_update_ex()
5938 WARN_ON(le32_to_cpu(ex->ee_block) != start); in ext4_ext_replay_update_ex()
5940 if (ext4_ext_get_actual_len(ex) != len) { in ext4_ext_replay_update_ex()
5953 ex = path[path->p_depth].p_ext; in ext4_ext_replay_update_ex()
5957 ext4_ext_mark_unwritten(ex); in ext4_ext_replay_update_ex()
5959 ext4_ext_mark_initialized(ex); in ext4_ext_replay_update_ex()
5960 ext4_ext_store_pblock(ex, pblk); in ext4_ext_replay_update_ex()
5974 struct ext4_extent *ex; in ext4_ext_replay_shrink_inode() local
5981 ex = path[path->p_depth].p_ext; in ext4_ext_replay_shrink_inode()
5982 if (!ex) { in ext4_ext_replay_shrink_inode()
5988 cur = le32_to_cpu(ex->ee_block) + ext4_ext_get_actual_len(ex); in ext4_ext_replay_shrink_inode()
5991 ext4_ext_try_to_merge(NULL, inode, path, ex); in ext4_ext_replay_shrink_inode()
6022 struct ext4_extent *ex; in ext4_ext_replay_set_iblocks() local
6033 ex = path[path->p_depth].p_ext; in ext4_ext_replay_set_iblocks()
6034 if (!ex) in ext4_ext_replay_set_iblocks()
6036 end = le32_to_cpu(ex->ee_block) + ext4_ext_get_actual_len(ex); in ext4_ext_replay_set_iblocks()
6070 ex = path[path->p_depth].p_ext; in ext4_ext_replay_set_iblocks()
6071 if (!ex) in ext4_ext_replay_set_iblocks()
6074 cur = max(cur + 1, le32_to_cpu(ex->ee_block) + in ext4_ext_replay_set_iblocks()
6075 ext4_ext_get_actual_len(ex)); in ext4_ext_replay_set_iblocks()
6109 struct ext4_extent *ex; in ext4_ext_clear_bb() local
6122 ex = path[path->p_depth].p_ext; in ext4_ext_clear_bb()
6123 if (!ex) in ext4_ext_clear_bb()
6125 end = le32_to_cpu(ex->ee_block) + ext4_ext_get_actual_len(ex); in ext4_ext_clear_bb()