Lines Matching refs:ee_len
1425 int depth, ee_len; in ext4_ext_search_left() local
1442 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_search_left()
1465 if (unlikely(*logical < (le32_to_cpu(ex->ee_block) + ee_len))) { in ext4_ext_search_left()
1468 *logical, le32_to_cpu(ex->ee_block), ee_len); in ext4_ext_search_left()
1472 *logical = le32_to_cpu(ex->ee_block) + ee_len - 1; in ext4_ext_search_left()
1473 *phys = ext4_ext_pblock(ex) + ee_len - 1; in ext4_ext_search_left()
1495 int ee_len; in ext4_ext_search_right() local
1512 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_search_right()
1532 if (unlikely(*logical < (le32_to_cpu(ex->ee_block) + ee_len))) { in ext4_ext_search_right()
1535 *logical, le32_to_cpu(ex->ee_block), ee_len); in ext4_ext_search_right()
1784 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_try_to_merge_right()
1912 newext->ee_len = cpu_to_le16(len1); in ext4_ext_check_overlap()
1918 newext->ee_len = cpu_to_le16(b2 - b1); in ext4_ext_check_overlap()
1995 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_insert_extent()
2024 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_insert_extent()
2131 nearex->ee_len = newext->ee_len; in ext4_ext_insert_extent()
2499 unsigned short ee_len = ext4_ext_get_actual_len(ex); in ext4_remove_blocks() local
2518 pblk = ext4_ext_pblock(ex) + ee_len - 1; in ext4_remove_blocks()
2531 sbi->s_ext_blocks += ee_len; in ext4_remove_blocks()
2533 if (ee_len < sbi->s_ext_min) in ext4_remove_blocks()
2534 sbi->s_ext_min = ee_len; in ext4_remove_blocks()
2535 if (ee_len > sbi->s_ext_max) in ext4_remove_blocks()
2536 sbi->s_ext_max = ee_len; in ext4_remove_blocks()
2543 && to == le32_to_cpu(ex->ee_block) + ee_len - 1) { in ext4_remove_blocks()
2548 num = le32_to_cpu(ex->ee_block) + ee_len - from; in ext4_remove_blocks()
2549 pblk = ext4_ext_pblock(ex) + ee_len - num; in ext4_remove_blocks()
2578 if (EXT4_PBLK_COFF(sbi, pblk) && ee_len == num) { in ext4_remove_blocks()
2588 from, to, le32_to_cpu(ex->ee_block), ee_len); in ext4_remove_blocks()
2726 ex->ee_len = cpu_to_le16(num); in ext4_ext_rm_leaf()
3121 unsigned int ee_len; in ext4_zeroout_es() local
3124 ee_len = ext4_ext_get_actual_len(ex); in ext4_zeroout_es()
3127 if (ee_len == 0) in ext4_zeroout_es()
3130 return ext4_es_insert_extent(inode, ee_block, ee_len, ee_pblock, in ext4_zeroout_es()
3138 unsigned int ee_len; in ext4_ext_zeroout() local
3140 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_zeroout()
3143 ee_len); in ext4_ext_zeroout()
3179 unsigned int ee_len, depth; in ext4_split_extent_at() local
3193 ee_len = ext4_ext_get_actual_len(ex); in ext4_split_extent_at()
3196 BUG_ON(split < ee_block || split >= (ee_block + ee_len)); in ext4_split_extent_at()
3226 ex->ee_len = cpu_to_le16(split - ee_block); in ext4_split_extent_at()
3240 ex2->ee_len = cpu_to_le16(ee_len - (split - ee_block)); in ext4_split_extent_at()
3251 zero_ex.ee_len = cpu_to_le16( in ext4_split_extent_at()
3258 zero_ex.ee_len = cpu_to_le16( in ext4_split_extent_at()
3266 zero_ex.ee_len = cpu_to_le16( in ext4_split_extent_at()
3275 ex->ee_len = cpu_to_le16(ee_len); in ext4_split_extent_at()
3293 ex->ee_len = orig_ex.ee_len; in ext4_split_extent_at()
3319 unsigned int ee_len, depth; in ext4_split_extent() local
3328 ee_len = ext4_ext_get_actual_len(ex); in ext4_split_extent()
3331 if (map->m_lblk + map->m_len < ee_block + ee_len) { in ext4_split_extent()
3344 allocated = ee_len - (map->m_lblk - ee_block); in ext4_split_extent()
3414 unsigned int ee_len, depth, map_len = map->m_len; in ext4_ext_convert_to_initialized() local
3433 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_convert_to_initialized()
3434 zero_ex1.ee_len = 0; in ext4_ext_convert_to_initialized()
3435 zero_ex2.ee_len = 0; in ext4_ext_convert_to_initialized()
3441 BUG_ON(!in_range(map->m_lblk, ee_block, ee_len)); in ext4_ext_convert_to_initialized()
3460 (map_len < ee_len) && /*L1*/ in ext4_ext_convert_to_initialized()
3495 ex->ee_len = cpu_to_le16(ee_len - map_len); in ext4_ext_convert_to_initialized()
3499 abut_ex->ee_len = cpu_to_le16(prev_len + map_len); in ext4_ext_convert_to_initialized()
3504 } else if (((map->m_lblk + map_len) == (ee_block + ee_len)) && in ext4_ext_convert_to_initialized()
3505 (map_len < ee_len) && /*L1*/ in ext4_ext_convert_to_initialized()
3529 ((ee_pblk + ee_len) == next_pblk) && /*C3*/ in ext4_ext_convert_to_initialized()
3541 ex->ee_len = cpu_to_le16(ee_len - map_len); in ext4_ext_convert_to_initialized()
3545 abut_ex->ee_len = cpu_to_le16(next_len + map_len); in ext4_ext_convert_to_initialized()
3559 allocated = ee_len - (map->m_lblk - ee_block); in ext4_ext_convert_to_initialized()
3566 split_flag |= ee_block + ee_len <= eof_block ? EXT4_EXT_MAY_ZEROOUT : 0; in ext4_ext_convert_to_initialized()
3595 zero_ex1.ee_len = in ext4_ext_convert_to_initialized()
3610 zero_ex2.ee_len = cpu_to_le16(split_map.m_lblk - in ext4_ext_convert_to_initialized()
3673 unsigned int ee_len; in ext4_split_convert_extents() local
3691 ee_len = ext4_ext_get_actual_len(ex); in ext4_split_convert_extents()
3698 split_flag |= ee_block + ee_len <= eof_block ? in ext4_split_convert_extents()
3714 unsigned int ee_len; in ext4_convert_unwritten_extents_endio() local
3721 ee_len = ext4_ext_get_actual_len(ex); in ext4_convert_unwritten_extents_endio()
3725 (unsigned long long)ee_block, ee_len); in ext4_convert_unwritten_extents_endio()
3733 if (ee_block != map->m_lblk || ee_len > map->m_len) { in ext4_convert_unwritten_extents_endio()
3737 inode->i_ino, (unsigned long long)ee_block, ee_len, in ext4_convert_unwritten_extents_endio()
3939 unsigned int ee_len; in convert_initialized_extent() local
3953 ee_len = ext4_ext_get_actual_len(ex); in convert_initialized_extent()
3957 (unsigned long long)ee_block, ee_len); in convert_initialized_extent()
3959 if (ee_block != map->m_lblk || ee_len > map->m_len) { in convert_initialized_extent()
4198 unsigned short ee_len = ext4_ext_get_actual_len(ex); in get_implied_cluster_alloc() local
4202 ex_cluster_end = EXT4_B2C(sbi, ee_block + ee_len - 1); in get_implied_cluster_alloc()
4210 ee_start += ee_len - 1; in get_implied_cluster_alloc()
4313 unsigned short ee_len; in ext4_ext_map_blocks() local
4320 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_map_blocks()
4322 trace_ext4_ext_show_extent(inode, ee_block, ee_start, ee_len); in ext4_ext_map_blocks()
4325 if (in_range(map->m_lblk, ee_block, ee_len)) { in ext4_ext_map_blocks()
4328 allocated = ee_len - (map->m_lblk - ee_block); in ext4_ext_map_blocks()
4330 ee_block, ee_len, newblock); in ext4_ext_map_blocks()
4433 newex.ee_len = cpu_to_le16(map->m_len); in ext4_ext_map_blocks()
4481 newex.ee_len = cpu_to_le16(ar.len); in ext4_ext_map_blocks()
5603 unsigned int credits, ee_len; in ext4_insert_range() local
5707 ee_len = ext4_ext_get_actual_len(extent); in ext4_insert_range()
5714 (offset_lblk < (ee_start_lblk + ee_len))) { in ext4_insert_range()
5924 ex1->ee_len = cpu_to_le16(e2_len); in ext4_swap_extents()
5925 ex2->ee_len = cpu_to_le16(e1_len); in ext4_swap_extents()