Lines Matching refs:ex

197 		struct ext4_extent *ex;  in ext4_ext_find_goal()  local
216 ex = path[depth].p_ext; in ext4_ext_find_goal()
217 if (ex) { in ext4_ext_find_goal()
218 ext4_fsblk_t ext_pblk = ext4_ext_pblock(ex); in ext4_ext_find_goal()
219 ext4_lblk_t ext_block = le32_to_cpu(ex->ee_block); in ext4_ext_find_goal()
243 struct ext4_extent *ex, int *err, unsigned int flags) in ext4_ext_new_meta_block() argument
247 goal = ext4_ext_find_goal(inode, path, le32_to_cpu(ex->ee_block)); in ext4_ext_new_meta_block()
503 struct ext4_extent *ex = EXT_FIRST_EXTENT(eh); in ext4_cache_extents() local
507 for (i = le16_to_cpu(eh->eh_entries); i > 0; i--, ex++) { in ext4_cache_extents()
509 ext4_lblk_t lblk = le32_to_cpu(ex->ee_block); in ext4_cache_extents()
510 int len = ext4_ext_get_actual_len(ex); in ext4_cache_extents()
516 if (ext4_ext_is_unwritten(ex)) in ext4_cache_extents()
519 ext4_ext_pblock(ex), status); in ext4_cache_extents()
667 struct ext4_extent *ex; in ext4_ext_show_leaf() local
674 ex = EXT_FIRST_EXTENT(eh); in ext4_ext_show_leaf()
678 for (i = 0; i < le16_to_cpu(eh->eh_entries); i++, ex++) { in ext4_ext_show_leaf()
679 ext_debug(inode, "%d:[%d]%d:%llu ", le32_to_cpu(ex->ee_block), in ext4_ext_show_leaf()
680 ext4_ext_is_unwritten(ex), in ext4_ext_show_leaf()
681 ext4_ext_get_actual_len(ex), ext4_ext_pblock(ex)); in ext4_ext_show_leaf()
690 struct ext4_extent *ex; in ext4_ext_show_move() local
705 ex = path[depth].p_ext; in ext4_ext_show_move()
706 while (ex <= EXT_MAX_EXTENT(path[depth].p_hdr)) { in ext4_ext_show_move()
708 le32_to_cpu(ex->ee_block), in ext4_ext_show_move()
709 ext4_ext_pblock(ex), in ext4_ext_show_move()
710 ext4_ext_is_unwritten(ex), in ext4_ext_show_move()
711 ext4_ext_get_actual_len(ex), in ext4_ext_show_move()
713 ex++; in ext4_ext_show_move()
843 struct ext4_extent *chex, *ex; in ext4_ext_binsearch() local
846 chex = ex = EXT_FIRST_EXTENT(eh); in ext4_ext_binsearch()
847 for (k = 0; k < le16_to_cpu(eh->eh_entries); k++, ex++) { in ext4_ext_binsearch()
848 BUG_ON(k && le32_to_cpu(ex->ee_block) in ext4_ext_binsearch()
849 <= le32_to_cpu(ex[-1].ee_block)); in ext4_ext_binsearch()
850 if (block < le32_to_cpu(ex->ee_block)) in ext4_ext_binsearch()
852 chex = ex; in ext4_ext_binsearch()
1150 struct ext4_extent *ex; in ext4_ext_split() local
1151 ex = EXT_FIRST_EXTENT(neh); in ext4_ext_split()
1152 memmove(ex, path[depth].p_ext, sizeof(struct ext4_extent) * m); in ext4_ext_split()
1467 struct ext4_extent *ex; in ext4_ext_search_left() local
1484 ex = path[depth].p_ext; in ext4_ext_search_left()
1485 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_search_left()
1486 if (*logical < le32_to_cpu(ex->ee_block)) { in ext4_ext_search_left()
1487 if (unlikely(EXT_FIRST_EXTENT(path[depth].p_hdr) != ex)) { in ext4_ext_search_left()
1490 *logical, le32_to_cpu(ex->ee_block)); in ext4_ext_search_left()
1508 if (unlikely(*logical < (le32_to_cpu(ex->ee_block) + ee_len))) { in ext4_ext_search_left()
1511 *logical, le32_to_cpu(ex->ee_block), ee_len); in ext4_ext_search_left()
1515 *logical = le32_to_cpu(ex->ee_block) + ee_len - 1; in ext4_ext_search_left()
1516 *phys = ext4_ext_pblock(ex) + ee_len - 1; in ext4_ext_search_left()
1535 struct ext4_extent *ex; in ext4_ext_search_right() local
1553 ex = path[depth].p_ext; in ext4_ext_search_right()
1554 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_search_right()
1555 if (*logical < le32_to_cpu(ex->ee_block)) { in ext4_ext_search_right()
1556 if (unlikely(EXT_FIRST_EXTENT(path[depth].p_hdr) != ex)) { in ext4_ext_search_right()
1574 if (unlikely(*logical < (le32_to_cpu(ex->ee_block) + ee_len))) { in ext4_ext_search_right()
1577 *logical, le32_to_cpu(ex->ee_block), ee_len); in ext4_ext_search_right()
1581 if (ex != EXT_LAST_EXTENT(path[depth].p_hdr)) { in ext4_ext_search_right()
1583 ex++; in ext4_ext_search_right()
1616 ex = EXT_FIRST_EXTENT(eh); in ext4_ext_search_right()
1618 *logical = le32_to_cpu(ex->ee_block); in ext4_ext_search_right()
1619 *phys = ext4_ext_pblock(ex); in ext4_ext_search_right()
1621 *ret_ex = *ex; in ext4_ext_search_right()
1703 struct ext4_extent *ex; in ext4_ext_correct_indexes() local
1708 ex = path[depth].p_ext; in ext4_ext_correct_indexes()
1710 if (unlikely(ex == NULL || eh == NULL)) { in ext4_ext_correct_indexes()
1712 "ex %p == NULL or eh %p == NULL", ex, eh); in ext4_ext_correct_indexes()
1721 if (ex != EXT_FIRST_EXTENT(eh)) { in ext4_ext_correct_indexes()
1796 struct ext4_extent *ex) in ext4_ext_try_to_merge_right() argument
1806 while (ex < EXT_LAST_EXTENT(eh)) { in ext4_ext_try_to_merge_right()
1807 if (!ext4_can_extents_be_merged(inode, ex, ex + 1)) in ext4_ext_try_to_merge_right()
1810 unwritten = ext4_ext_is_unwritten(ex); in ext4_ext_try_to_merge_right()
1811 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_try_to_merge_right()
1812 + ext4_ext_get_actual_len(ex + 1)); in ext4_ext_try_to_merge_right()
1814 ext4_ext_mark_unwritten(ex); in ext4_ext_try_to_merge_right()
1816 if (ex + 1 < EXT_LAST_EXTENT(eh)) { in ext4_ext_try_to_merge_right()
1817 len = (EXT_LAST_EXTENT(eh) - ex - 1) in ext4_ext_try_to_merge_right()
1819 memmove(ex + 1, ex + 2, len); in ext4_ext_try_to_merge_right()
1884 struct ext4_extent *ex) in ext4_ext_try_to_merge() argument
1894 if (ex > EXT_FIRST_EXTENT(eh)) in ext4_ext_try_to_merge()
1895 merge_done = ext4_ext_try_to_merge_right(inode, path, ex - 1); in ext4_ext_try_to_merge()
1898 (void) ext4_ext_try_to_merge_right(inode, path, ex); in ext4_ext_try_to_merge()
1966 struct ext4_extent *ex, *fex; in ext4_ext_insert_extent() local
1980 ex = path[depth].p_ext; in ext4_ext_insert_extent()
1988 if (ex && !(gb_flags & EXT4_GET_BLOCKS_PRE_IO)) { in ext4_ext_insert_extent()
1997 if (ex < EXT_LAST_EXTENT(eh) && in ext4_ext_insert_extent()
1998 (le32_to_cpu(ex->ee_block) + in ext4_ext_insert_extent()
1999 ext4_ext_get_actual_len(ex) < in ext4_ext_insert_extent()
2001 ex += 1; in ext4_ext_insert_extent()
2003 } else if ((ex > EXT_FIRST_EXTENT(eh)) && in ext4_ext_insert_extent()
2006 le32_to_cpu(ex->ee_block))) in ext4_ext_insert_extent()
2007 ex -= 1; in ext4_ext_insert_extent()
2010 if (ext4_can_extents_be_merged(inode, ex, newext)) { in ext4_ext_insert_extent()
2015 le32_to_cpu(ex->ee_block), in ext4_ext_insert_extent()
2016 ext4_ext_is_unwritten(ex), in ext4_ext_insert_extent()
2017 ext4_ext_get_actual_len(ex), in ext4_ext_insert_extent()
2018 ext4_ext_pblock(ex)); in ext4_ext_insert_extent()
2023 unwritten = ext4_ext_is_unwritten(ex); in ext4_ext_insert_extent()
2024 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_insert_extent()
2027 ext4_ext_mark_unwritten(ex); in ext4_ext_insert_extent()
2029 nearex = ex; in ext4_ext_insert_extent()
2035 if (ext4_can_extents_be_merged(inode, newext, ex)) { in ext4_ext_insert_extent()
2041 le32_to_cpu(ex->ee_block), in ext4_ext_insert_extent()
2042 ext4_ext_is_unwritten(ex), in ext4_ext_insert_extent()
2043 ext4_ext_get_actual_len(ex), in ext4_ext_insert_extent()
2044 ext4_ext_pblock(ex)); in ext4_ext_insert_extent()
2050 unwritten = ext4_ext_is_unwritten(ex); in ext4_ext_insert_extent()
2051 ex->ee_block = newext->ee_block; in ext4_ext_insert_extent()
2052 ext4_ext_store_pblock(ex, ext4_ext_pblock(newext)); in ext4_ext_insert_extent()
2053 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_insert_extent()
2056 ext4_ext_mark_unwritten(ex); in ext4_ext_insert_extent()
2058 nearex = ex; in ext4_ext_insert_extent()
2245 struct ext4_extent *ex; in ext4_ext_determine_hole() local
2248 ex = path[depth].p_ext; in ext4_ext_determine_hole()
2249 if (ex == NULL) { in ext4_ext_determine_hole()
2253 } else if (*lblk < le32_to_cpu(ex->ee_block)) { in ext4_ext_determine_hole()
2254 len = le32_to_cpu(ex->ee_block) - *lblk; in ext4_ext_determine_hole()
2255 } else if (*lblk >= le32_to_cpu(ex->ee_block) in ext4_ext_determine_hole()
2256 + ext4_ext_get_actual_len(ex)) { in ext4_ext_determine_hole()
2259 *lblk = le32_to_cpu(ex->ee_block) + ext4_ext_get_actual_len(ex); in ext4_ext_determine_hole()
2451 struct ext4_extent *ex, in ext4_remove_blocks() argument
2456 unsigned short ee_len = ext4_ext_get_actual_len(ex); in ext4_remove_blocks()
2462 if (from < le32_to_cpu(ex->ee_block) || in ext4_remove_blocks()
2463 to != le32_to_cpu(ex->ee_block) + ee_len - 1) { in ext4_remove_blocks()
2466 from, to, le32_to_cpu(ex->ee_block), ee_len); in ext4_remove_blocks()
2483 trace_ext4_remove_blocks(inode, ex, from, to, partial); in ext4_remove_blocks()
2489 last_pblk = ext4_ext_pblock(ex) + ee_len - 1; in ext4_remove_blocks()
2506 num = le32_to_cpu(ex->ee_block) + ee_len - from; in ext4_remove_blocks()
2507 pblk = ext4_ext_pblock(ex) + ee_len - num; in ext4_remove_blocks()
2600 struct ext4_extent *ex; in ext4_ext_rm_leaf() local
2613 ex = path[depth].p_ext; in ext4_ext_rm_leaf()
2614 if (!ex) in ext4_ext_rm_leaf()
2615 ex = EXT_LAST_EXTENT(eh); in ext4_ext_rm_leaf()
2617 ex_ee_block = le32_to_cpu(ex->ee_block); in ext4_ext_rm_leaf()
2618 ex_ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_rm_leaf()
2620 trace_ext4_ext_rm_leaf(inode, start, ex, partial); in ext4_ext_rm_leaf()
2622 while (ex >= EXT_FIRST_EXTENT(eh) && in ext4_ext_rm_leaf()
2625 if (ext4_ext_is_unwritten(ex)) in ext4_ext_rm_leaf()
2632 path[depth].p_ext = ex; in ext4_ext_rm_leaf()
2650 pblk = ext4_ext_pblock(ex); in ext4_ext_rm_leaf()
2654 ex--; in ext4_ext_rm_leaf()
2655 ex_ee_block = le32_to_cpu(ex->ee_block); in ext4_ext_rm_leaf()
2656 ex_ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_rm_leaf()
2680 if (ex == EXT_FIRST_EXTENT(eh)) { in ext4_ext_rm_leaf()
2707 err = ext4_remove_blocks(handle, inode, ex, partial, a, b); in ext4_ext_rm_leaf()
2713 ext4_ext_store_pblock(ex, 0); in ext4_ext_rm_leaf()
2715 ex->ee_len = cpu_to_le16(num); in ext4_ext_rm_leaf()
2721 ext4_ext_mark_unwritten(ex); in ext4_ext_rm_leaf()
2733 memmove(ex, ex+1, (EXT_LAST_EXTENT(eh) - ex) * in ext4_ext_rm_leaf()
2748 ext4_ext_pblock(ex)); in ext4_ext_rm_leaf()
2749 ex--; in ext4_ext_rm_leaf()
2750 ex_ee_block = le32_to_cpu(ex->ee_block); in ext4_ext_rm_leaf()
2751 ex_ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_rm_leaf()
2764 if (partial->state == tofree && ex >= EXT_FIRST_EXTENT(eh)) { in ext4_ext_rm_leaf()
2765 pblk = ext4_ext_pblock(ex) + ex_ee_len - 1; in ext4_ext_rm_leaf()
2844 struct ext4_extent *ex; in ext4_ext_remove_space() local
2857 ex = path[depth].p_ext; in ext4_ext_remove_space()
2858 if (!ex) { in ext4_ext_remove_space()
2868 ee_block = le32_to_cpu(ex->ee_block); in ext4_ext_remove_space()
2869 ex_end = ee_block + ext4_ext_get_actual_len(ex) - 1; in ext4_ext_remove_space()
2885 pblk = ext4_ext_pblock(ex) + end - ee_block + 1; in ext4_ext_remove_space()
3124 static int ext4_zeroout_es(struct inode *inode, struct ext4_extent *ex) in ext4_zeroout_es() argument
3130 ee_block = le32_to_cpu(ex->ee_block); in ext4_zeroout_es()
3131 ee_len = ext4_ext_get_actual_len(ex); in ext4_zeroout_es()
3132 ee_pblock = ext4_ext_pblock(ex); in ext4_zeroout_es()
3142 static int ext4_ext_zeroout(struct inode *inode, struct ext4_extent *ex) in ext4_ext_zeroout() argument
3147 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_zeroout()
3148 ee_pblock = ext4_ext_pblock(ex); in ext4_ext_zeroout()
3149 return ext4_issue_zeroout(inode, le32_to_cpu(ex->ee_block), ee_pblock, in ext4_ext_zeroout()
3184 struct ext4_extent *ex, newex, orig_ex, zero_ex; in ext4_split_extent_at() local
3197 ex = path[depth].p_ext; in ext4_split_extent_at()
3198 ee_block = le32_to_cpu(ex->ee_block); in ext4_split_extent_at()
3199 ee_len = ext4_ext_get_actual_len(ex); in ext4_split_extent_at()
3200 newblock = split - ee_block + ext4_ext_pblock(ex); in ext4_split_extent_at()
3203 BUG_ON(!ext4_ext_is_unwritten(ex) && in ext4_split_extent_at()
3219 ext4_ext_mark_unwritten(ex); in ext4_split_extent_at()
3221 ext4_ext_mark_initialized(ex); in ext4_split_extent_at()
3224 ext4_ext_try_to_merge(handle, inode, path, ex); in ext4_split_extent_at()
3231 memcpy(&orig_ex, ex, sizeof(orig_ex)); in ext4_split_extent_at()
3232 ex->ee_len = cpu_to_le16(split - ee_block); in ext4_split_extent_at()
3234 ext4_ext_mark_unwritten(ex); in ext4_split_extent_at()
3265 err = ext4_ext_zeroout(inode, ex); in ext4_split_extent_at()
3266 zero_ex.ee_block = ex->ee_block; in ext4_split_extent_at()
3268 ext4_ext_get_actual_len(ex)); in ext4_split_extent_at()
3270 ext4_ext_pblock(ex)); in ext4_split_extent_at()
3283 ex->ee_len = cpu_to_le16(ee_len); in ext4_split_extent_at()
3284 ext4_ext_try_to_merge(handle, inode, path, ex); in ext4_split_extent_at()
3299 ex->ee_len = orig_ex.ee_len; in ext4_split_extent_at()
3331 struct ext4_extent *ex; in ext4_split_extent() local
3339 ex = path[depth].p_ext; in ext4_split_extent()
3340 ee_block = le32_to_cpu(ex->ee_block); in ext4_split_extent()
3341 ee_len = ext4_ext_get_actual_len(ex); in ext4_split_extent()
3342 unwritten = ext4_ext_is_unwritten(ex); in ext4_split_extent()
3367 ex = path[depth].p_ext; in ext4_split_extent()
3368 if (!ex) { in ext4_split_extent()
3373 unwritten = ext4_ext_is_unwritten(ex); in ext4_split_extent()
3425 struct ext4_extent *ex, *abut_ex; in ext4_ext_convert_to_initialized() local
3443 ex = path[depth].p_ext; in ext4_ext_convert_to_initialized()
3444 ee_block = le32_to_cpu(ex->ee_block); in ext4_ext_convert_to_initialized()
3445 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_convert_to_initialized()
3449 trace_ext4_ext_convert_to_initialized_enter(inode, map, ex); in ext4_ext_convert_to_initialized()
3452 BUG_ON(!ext4_ext_is_unwritten(ex)); in ext4_ext_convert_to_initialized()
3473 (ex > EXT_FIRST_EXTENT(eh))) { /*L2*/ in ext4_ext_convert_to_initialized()
3478 abut_ex = ex - 1; in ext4_ext_convert_to_initialized()
3482 ee_pblk = ext4_ext_pblock(ex); in ext4_ext_convert_to_initialized()
3502 map, ex, abut_ex); in ext4_ext_convert_to_initialized()
3505 ex->ee_block = cpu_to_le32(ee_block + map_len); in ext4_ext_convert_to_initialized()
3506 ext4_ext_store_pblock(ex, ee_pblk + map_len); in ext4_ext_convert_to_initialized()
3507 ex->ee_len = cpu_to_le16(ee_len - map_len); in ext4_ext_convert_to_initialized()
3508 ext4_ext_mark_unwritten(ex); /* Restore the flag */ in ext4_ext_convert_to_initialized()
3518 ex < EXT_LAST_EXTENT(eh)) { /*L2*/ in ext4_ext_convert_to_initialized()
3524 abut_ex = ex + 1; in ext4_ext_convert_to_initialized()
3528 ee_pblk = ext4_ext_pblock(ex); in ext4_ext_convert_to_initialized()
3548 map, ex, abut_ex); in ext4_ext_convert_to_initialized()
3553 ex->ee_len = cpu_to_le16(ee_len - map_len); in ext4_ext_convert_to_initialized()
3554 ext4_ext_mark_unwritten(ex); /* Restore the flag */ in ext4_ext_convert_to_initialized()
3607 ext4_ext_pblock(ex) + split_map.m_lblk + in ext4_ext_convert_to_initialized()
3618 zero_ex2.ee_block = ex->ee_block; in ext4_ext_convert_to_initialized()
3622 ext4_ext_pblock(ex)); in ext4_ext_convert_to_initialized()
3682 struct ext4_extent *ex; in ext4_split_convert_extents() local
3698 ex = path[depth].p_ext; in ext4_split_convert_extents()
3699 ee_block = le32_to_cpu(ex->ee_block); in ext4_split_convert_extents()
3700 ee_len = ext4_ext_get_actual_len(ex); in ext4_split_convert_extents()
3721 struct ext4_extent *ex; in ext4_convert_unwritten_extents_endio() local
3728 ex = path[depth].p_ext; in ext4_convert_unwritten_extents_endio()
3729 ee_block = le32_to_cpu(ex->ee_block); in ext4_convert_unwritten_extents_endio()
3730 ee_len = ext4_ext_get_actual_len(ex); in ext4_convert_unwritten_extents_endio()
3756 ex = path[depth].p_ext; in ext4_convert_unwritten_extents_endio()
3763 ext4_ext_mark_initialized(ex); in ext4_convert_unwritten_extents_endio()
3768 ext4_ext_try_to_merge(handle, inode, path, ex); in ext4_convert_unwritten_extents_endio()
3784 struct ext4_extent *ex; in convert_initialized_extent() local
3798 ex = path[depth].p_ext; in convert_initialized_extent()
3799 ee_block = le32_to_cpu(ex->ee_block); in convert_initialized_extent()
3800 ee_len = ext4_ext_get_actual_len(ex); in convert_initialized_extent()
3814 ex = path[depth].p_ext; in convert_initialized_extent()
3815 if (!ex) { in convert_initialized_extent()
3826 ext4_ext_mark_unwritten(ex); in convert_initialized_extent()
3831 ext4_ext_try_to_merge(handle, inode, path, ex); in convert_initialized_extent()
4006 struct ext4_extent *ex, in get_implied_cluster_alloc() argument
4013 ext4_lblk_t ee_block = le32_to_cpu(ex->ee_block); in get_implied_cluster_alloc()
4014 ext4_fsblk_t ee_start = ext4_ext_pblock(ex); in get_implied_cluster_alloc()
4015 unsigned short ee_len = ext4_ext_get_actual_len(ex); in get_implied_cluster_alloc()
4088 struct ext4_extent newex, *ex, ex2; in ext4_ext_map_blocks() local
4124 ex = path[depth].p_ext; in ext4_ext_map_blocks()
4125 if (ex) { in ext4_ext_map_blocks()
4126 ext4_lblk_t ee_block = le32_to_cpu(ex->ee_block); in ext4_ext_map_blocks()
4127 ext4_fsblk_t ee_start = ext4_ext_pblock(ex); in ext4_ext_map_blocks()
4135 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_map_blocks()
4151 if ((!ext4_ext_is_unwritten(ex)) && in ext4_ext_map_blocks()
4156 } else if (!ext4_ext_is_unwritten(ex)) { in ext4_ext_map_blocks()
4211 if (cluster_offset && ex && in ext4_ext_map_blocks()
4212 get_implied_cluster_alloc(inode->i_sb, map, ex, path)) { in ext4_ext_map_blocks()
5857 struct ext4_extent *ex; in ext4_ext_replay_update_ex() local
5863 ex = path[path->p_depth].p_ext; in ext4_ext_replay_update_ex()
5864 if (!ex) { in ext4_ext_replay_update_ex()
5869 if (le32_to_cpu(ex->ee_block) != start || in ext4_ext_replay_update_ex()
5870 ext4_ext_get_actual_len(ex) != len) { in ext4_ext_replay_update_ex()
5883 ex = path[path->p_depth].p_ext; in ext4_ext_replay_update_ex()
5884 WARN_ON(le32_to_cpu(ex->ee_block) != start); in ext4_ext_replay_update_ex()
5885 if (ext4_ext_get_actual_len(ex) != len) { in ext4_ext_replay_update_ex()
5896 ex = path[path->p_depth].p_ext; in ext4_ext_replay_update_ex()
5900 ext4_ext_mark_unwritten(ex); in ext4_ext_replay_update_ex()
5902 ext4_ext_mark_initialized(ex); in ext4_ext_replay_update_ex()
5903 ext4_ext_store_pblock(ex, pblk); in ext4_ext_replay_update_ex()
5918 struct ext4_extent *ex; in ext4_ext_replay_shrink_inode() local
5925 ex = path[path->p_depth].p_ext; in ext4_ext_replay_shrink_inode()
5926 if (!ex) { in ext4_ext_replay_shrink_inode()
5933 cur = le32_to_cpu(ex->ee_block) + ext4_ext_get_actual_len(ex); in ext4_ext_replay_shrink_inode()
5936 ext4_ext_try_to_merge(NULL, inode, path, ex); in ext4_ext_replay_shrink_inode()
5968 struct ext4_extent *ex; in ext4_ext_replay_set_iblocks() local
5979 ex = path[path->p_depth].p_ext; in ext4_ext_replay_set_iblocks()
5980 if (!ex) { in ext4_ext_replay_set_iblocks()
5985 end = le32_to_cpu(ex->ee_block) + ext4_ext_get_actual_len(ex); in ext4_ext_replay_set_iblocks()
6023 ex = path[path->p_depth].p_ext; in ext4_ext_replay_set_iblocks()
6024 if (!ex) { in ext4_ext_replay_set_iblocks()
6029 cur = max(cur + 1, le32_to_cpu(ex->ee_block) + in ext4_ext_replay_set_iblocks()
6030 ext4_ext_get_actual_len(ex)); in ext4_ext_replay_set_iblocks()
6069 struct ext4_extent *ex; in ext4_ext_clear_bb() local
6082 ex = path[path->p_depth].p_ext; in ext4_ext_clear_bb()
6083 if (!ex) { in ext4_ext_clear_bb()
6088 end = le32_to_cpu(ex->ee_block) + ext4_ext_get_actual_len(ex); in ext4_ext_clear_bb()