Lines Matching refs:ee_len
1455 int depth, ee_len; in ext4_ext_search_left() local
1472 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_search_left()
1495 if (unlikely(*logical < (le32_to_cpu(ex->ee_block) + ee_len))) { in ext4_ext_search_left()
1498 *logical, le32_to_cpu(ex->ee_block), ee_len); in ext4_ext_search_left()
1502 *logical = le32_to_cpu(ex->ee_block) + ee_len - 1; in ext4_ext_search_left()
1503 *phys = ext4_ext_pblock(ex) + ee_len - 1; in ext4_ext_search_left()
1525 int ee_len; in ext4_ext_search_right() local
1542 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_search_right()
1562 if (unlikely(*logical < (le32_to_cpu(ex->ee_block) + ee_len))) { in ext4_ext_search_right()
1565 *logical, le32_to_cpu(ex->ee_block), ee_len); in ext4_ext_search_right()
1814 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_try_to_merge_right()
1942 newext->ee_len = cpu_to_le16(len1); in ext4_ext_check_overlap()
1948 newext->ee_len = cpu_to_le16(b2 - b1); in ext4_ext_check_overlap()
2025 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_insert_extent()
2054 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_insert_extent()
2161 nearex->ee_len = newext->ee_len; in ext4_ext_insert_extent()
2529 unsigned short ee_len = ext4_ext_get_actual_len(ex); in ext4_remove_blocks() local
2548 pblk = ext4_ext_pblock(ex) + ee_len - 1; in ext4_remove_blocks()
2561 sbi->s_ext_blocks += ee_len; in ext4_remove_blocks()
2563 if (ee_len < sbi->s_ext_min) in ext4_remove_blocks()
2564 sbi->s_ext_min = ee_len; in ext4_remove_blocks()
2565 if (ee_len > sbi->s_ext_max) in ext4_remove_blocks()
2566 sbi->s_ext_max = ee_len; in ext4_remove_blocks()
2573 && to == le32_to_cpu(ex->ee_block) + ee_len - 1) { in ext4_remove_blocks()
2578 num = le32_to_cpu(ex->ee_block) + ee_len - from; in ext4_remove_blocks()
2579 pblk = ext4_ext_pblock(ex) + ee_len - num; in ext4_remove_blocks()
2608 if (EXT4_PBLK_COFF(sbi, pblk) && ee_len == num) { in ext4_remove_blocks()
2618 from, to, le32_to_cpu(ex->ee_block), ee_len); in ext4_remove_blocks()
2756 ex->ee_len = cpu_to_le16(num); in ext4_ext_rm_leaf()
3151 unsigned int ee_len; in ext4_zeroout_es() local
3154 ee_len = ext4_ext_get_actual_len(ex); in ext4_zeroout_es()
3157 if (ee_len == 0) in ext4_zeroout_es()
3160 return ext4_es_insert_extent(inode, ee_block, ee_len, ee_pblock, in ext4_zeroout_es()
3168 unsigned int ee_len; in ext4_ext_zeroout() local
3170 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_zeroout()
3173 ee_len); in ext4_ext_zeroout()
3209 unsigned int ee_len, depth; in ext4_split_extent_at() local
3223 ee_len = ext4_ext_get_actual_len(ex); in ext4_split_extent_at()
3226 BUG_ON(split < ee_block || split >= (ee_block + ee_len)); in ext4_split_extent_at()
3256 ex->ee_len = cpu_to_le16(split - ee_block); in ext4_split_extent_at()
3270 ex2->ee_len = cpu_to_le16(ee_len - (split - ee_block)); in ext4_split_extent_at()
3284 zero_ex.ee_len = cpu_to_le16( in ext4_split_extent_at()
3291 zero_ex.ee_len = cpu_to_le16( in ext4_split_extent_at()
3299 zero_ex.ee_len = cpu_to_le16( in ext4_split_extent_at()
3307 ex->ee_len = cpu_to_le16(ee_len); in ext4_split_extent_at()
3323 ex->ee_len = orig_ex.ee_len; in ext4_split_extent_at()
3352 unsigned int ee_len, depth; in ext4_split_extent() local
3361 ee_len = ext4_ext_get_actual_len(ex); in ext4_split_extent()
3364 if (map->m_lblk + map->m_len < ee_block + ee_len) { in ext4_split_extent()
3377 allocated = ee_len - (map->m_lblk - ee_block); in ext4_split_extent()
3447 unsigned int ee_len, depth, map_len = map->m_len; in ext4_ext_convert_to_initialized() local
3466 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_convert_to_initialized()
3467 zero_ex1.ee_len = 0; in ext4_ext_convert_to_initialized()
3468 zero_ex2.ee_len = 0; in ext4_ext_convert_to_initialized()
3474 BUG_ON(!in_range(map->m_lblk, ee_block, ee_len)); in ext4_ext_convert_to_initialized()
3493 (map_len < ee_len) && /*L1*/ in ext4_ext_convert_to_initialized()
3528 ex->ee_len = cpu_to_le16(ee_len - map_len); in ext4_ext_convert_to_initialized()
3532 abut_ex->ee_len = cpu_to_le16(prev_len + map_len); in ext4_ext_convert_to_initialized()
3537 } else if (((map->m_lblk + map_len) == (ee_block + ee_len)) && in ext4_ext_convert_to_initialized()
3538 (map_len < ee_len) && /*L1*/ in ext4_ext_convert_to_initialized()
3562 ((ee_pblk + ee_len) == next_pblk) && /*C3*/ in ext4_ext_convert_to_initialized()
3574 ex->ee_len = cpu_to_le16(ee_len - map_len); in ext4_ext_convert_to_initialized()
3578 abut_ex->ee_len = cpu_to_le16(next_len + map_len); in ext4_ext_convert_to_initialized()
3592 allocated = ee_len - (map->m_lblk - ee_block); in ext4_ext_convert_to_initialized()
3599 split_flag |= ee_block + ee_len <= eof_block ? EXT4_EXT_MAY_ZEROOUT : 0; in ext4_ext_convert_to_initialized()
3628 zero_ex1.ee_len = in ext4_ext_convert_to_initialized()
3643 zero_ex2.ee_len = cpu_to_le16(split_map.m_lblk - in ext4_ext_convert_to_initialized()
3706 unsigned int ee_len; in ext4_split_convert_extents() local
3724 ee_len = ext4_ext_get_actual_len(ex); in ext4_split_convert_extents()
3731 split_flag |= ee_block + ee_len <= eof_block ? in ext4_split_convert_extents()
3747 unsigned int ee_len; in ext4_convert_unwritten_extents_endio() local
3754 ee_len = ext4_ext_get_actual_len(ex); in ext4_convert_unwritten_extents_endio()
3758 (unsigned long long)ee_block, ee_len); in ext4_convert_unwritten_extents_endio()
3766 if (ee_block != map->m_lblk || ee_len > map->m_len) { in ext4_convert_unwritten_extents_endio()
3770 inode->i_ino, (unsigned long long)ee_block, ee_len, in ext4_convert_unwritten_extents_endio()
3972 unsigned int ee_len; in convert_initialized_extent() local
3986 ee_len = ext4_ext_get_actual_len(ex); in convert_initialized_extent()
3990 (unsigned long long)ee_block, ee_len); in convert_initialized_extent()
3992 if (ee_block != map->m_lblk || ee_len > map->m_len) { in convert_initialized_extent()
4231 unsigned short ee_len = ext4_ext_get_actual_len(ex); in get_implied_cluster_alloc() local
4235 ex_cluster_end = EXT4_B2C(sbi, ee_block + ee_len - 1); in get_implied_cluster_alloc()
4243 ee_start += ee_len - 1; in get_implied_cluster_alloc()
4346 unsigned short ee_len; in ext4_ext_map_blocks() local
4353 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_map_blocks()
4355 trace_ext4_ext_show_extent(inode, ee_block, ee_start, ee_len); in ext4_ext_map_blocks()
4358 if (in_range(map->m_lblk, ee_block, ee_len)) { in ext4_ext_map_blocks()
4361 allocated = ee_len - (map->m_lblk - ee_block); in ext4_ext_map_blocks()
4363 ee_block, ee_len, newblock); in ext4_ext_map_blocks()
4466 newex.ee_len = cpu_to_le16(map->m_len); in ext4_ext_map_blocks()
4514 newex.ee_len = cpu_to_le16(ar.len); in ext4_ext_map_blocks()
5636 unsigned int credits, ee_len; in ext4_insert_range() local
5740 ee_len = ext4_ext_get_actual_len(extent); in ext4_insert_range()
5747 (offset_lblk < (ee_start_lblk + ee_len))) { in ext4_insert_range()
5957 ex1->ee_len = cpu_to_le16(e2_len); in ext4_swap_extents()
5958 ex2->ee_len = cpu_to_le16(e1_len); in ext4_swap_extents()