Lines Matching refs:ee_len

1476 	int depth, ee_len;  in ext4_ext_search_left()  local
1493 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_search_left()
1515 if (unlikely(*logical < (le32_to_cpu(ex->ee_block) + ee_len))) { in ext4_ext_search_left()
1518 *logical, le32_to_cpu(ex->ee_block), ee_len); in ext4_ext_search_left()
1522 *logical = le32_to_cpu(ex->ee_block) + ee_len - 1; in ext4_ext_search_left()
1523 *phys = ext4_ext_pblock(ex) + ee_len - 1; in ext4_ext_search_left()
1544 int ee_len; in ext4_ext_search_right() local
1561 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_search_right()
1581 if (unlikely(*logical < (le32_to_cpu(ex->ee_block) + ee_len))) { in ext4_ext_search_right()
1584 *logical, le32_to_cpu(ex->ee_block), ee_len); in ext4_ext_search_right()
1818 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_try_to_merge_right()
1948 newext->ee_len = cpu_to_le16(len1); in ext4_ext_check_overlap()
1954 newext->ee_len = cpu_to_le16(b2 - b1); in ext4_ext_check_overlap()
2031 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_insert_extent()
2059 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_insert_extent()
2165 nearex->ee_len = newext->ee_len; in ext4_ext_insert_extent()
2460 unsigned short ee_len = ext4_ext_get_actual_len(ex); in ext4_remove_blocks() local
2467 to != le32_to_cpu(ex->ee_block) + ee_len - 1) { in ext4_remove_blocks()
2470 from, to, le32_to_cpu(ex->ee_block), ee_len); in ext4_remove_blocks()
2476 sbi->s_ext_blocks += ee_len; in ext4_remove_blocks()
2478 if (ee_len < sbi->s_ext_min) in ext4_remove_blocks()
2479 sbi->s_ext_min = ee_len; in ext4_remove_blocks()
2480 if (ee_len > sbi->s_ext_max) in ext4_remove_blocks()
2481 sbi->s_ext_max = ee_len; in ext4_remove_blocks()
2493 last_pblk = ext4_ext_pblock(ex) + ee_len - 1; in ext4_remove_blocks()
2510 num = le32_to_cpu(ex->ee_block) + ee_len - from; in ext4_remove_blocks()
2511 pblk = ext4_ext_pblock(ex) + ee_len - num; in ext4_remove_blocks()
2561 if (EXT4_LBLK_COFF(sbi, from) && num == ee_len) { in ext4_remove_blocks()
2719 ex->ee_len = cpu_to_le16(num); in ext4_ext_rm_leaf()
3131 unsigned int ee_len; in ext4_zeroout_es() local
3134 ee_len = ext4_ext_get_actual_len(ex); in ext4_zeroout_es()
3137 if (ee_len == 0) in ext4_zeroout_es()
3140 return ext4_es_insert_extent(inode, ee_block, ee_len, ee_pblock, in ext4_zeroout_es()
3148 unsigned int ee_len; in ext4_ext_zeroout() local
3150 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_zeroout()
3153 ee_len); in ext4_ext_zeroout()
3189 unsigned int ee_len, depth; in ext4_split_extent_at() local
3202 ee_len = ext4_ext_get_actual_len(ex); in ext4_split_extent_at()
3205 BUG_ON(split < ee_block || split >= (ee_block + ee_len)); in ext4_split_extent_at()
3235 ex->ee_len = cpu_to_le16(split - ee_block); in ext4_split_extent_at()
3249 ex2->ee_len = cpu_to_le16(ee_len - (split - ee_block)); in ext4_split_extent_at()
3263 zero_ex.ee_len = cpu_to_le16( in ext4_split_extent_at()
3270 zero_ex.ee_len = cpu_to_le16( in ext4_split_extent_at()
3278 zero_ex.ee_len = cpu_to_le16( in ext4_split_extent_at()
3286 ex->ee_len = cpu_to_le16(ee_len); in ext4_split_extent_at()
3302 ex->ee_len = orig_ex.ee_len; in ext4_split_extent_at()
3335 unsigned int ee_len, depth; in ext4_split_extent() local
3344 ee_len = ext4_ext_get_actual_len(ex); in ext4_split_extent()
3347 if (map->m_lblk + map->m_len < ee_block + ee_len) { in ext4_split_extent()
3360 allocated = ee_len - (map->m_lblk - ee_block); in ext4_split_extent()
3429 unsigned int ee_len, depth, map_len = map->m_len; in ext4_ext_convert_to_initialized() local
3447 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_convert_to_initialized()
3448 zero_ex1.ee_len = 0; in ext4_ext_convert_to_initialized()
3449 zero_ex2.ee_len = 0; in ext4_ext_convert_to_initialized()
3455 BUG_ON(!in_range(map->m_lblk, ee_block, ee_len)); in ext4_ext_convert_to_initialized()
3474 (map_len < ee_len) && /*L1*/ in ext4_ext_convert_to_initialized()
3509 ex->ee_len = cpu_to_le16(ee_len - map_len); in ext4_ext_convert_to_initialized()
3513 abut_ex->ee_len = cpu_to_le16(prev_len + map_len); in ext4_ext_convert_to_initialized()
3518 } else if (((map->m_lblk + map_len) == (ee_block + ee_len)) && in ext4_ext_convert_to_initialized()
3519 (map_len < ee_len) && /*L1*/ in ext4_ext_convert_to_initialized()
3543 ((ee_pblk + ee_len) == next_pblk) && /*C3*/ in ext4_ext_convert_to_initialized()
3555 ex->ee_len = cpu_to_le16(ee_len - map_len); in ext4_ext_convert_to_initialized()
3559 abut_ex->ee_len = cpu_to_le16(next_len + map_len); in ext4_ext_convert_to_initialized()
3573 allocated = ee_len - (map->m_lblk - ee_block); in ext4_ext_convert_to_initialized()
3580 split_flag |= ee_block + ee_len <= eof_block ? EXT4_EXT_MAY_ZEROOUT : 0; in ext4_ext_convert_to_initialized()
3606 zero_ex1.ee_len = in ext4_ext_convert_to_initialized()
3621 zero_ex2.ee_len = cpu_to_le16(split_map.m_lblk - in ext4_ext_convert_to_initialized()
3685 unsigned int ee_len; in ext4_split_convert_extents() local
3702 ee_len = ext4_ext_get_actual_len(ex); in ext4_split_convert_extents()
3709 split_flag |= ee_block + ee_len <= eof_block ? in ext4_split_convert_extents()
3725 unsigned int ee_len; in ext4_convert_unwritten_extents_endio() local
3732 ee_len = ext4_ext_get_actual_len(ex); in ext4_convert_unwritten_extents_endio()
3735 (unsigned long long)ee_block, ee_len); in ext4_convert_unwritten_extents_endio()
3743 if (ee_block != map->m_lblk || ee_len > map->m_len) { in ext4_convert_unwritten_extents_endio()
3747 inode->i_ino, (unsigned long long)ee_block, ee_len, in ext4_convert_unwritten_extents_endio()
3788 unsigned int ee_len; in convert_initialized_extent() local
3802 ee_len = ext4_ext_get_actual_len(ex); in convert_initialized_extent()
3805 (unsigned long long)ee_block, ee_len); in convert_initialized_extent()
3807 if (ee_block != map->m_lblk || ee_len > map->m_len) { in convert_initialized_extent()
4017 unsigned short ee_len = ext4_ext_get_actual_len(ex); in get_implied_cluster_alloc() local
4021 ex_cluster_end = EXT4_B2C(sbi, ee_block + ee_len - 1); in get_implied_cluster_alloc()
4029 ee_start += ee_len - 1; in get_implied_cluster_alloc()
4130 unsigned short ee_len; in ext4_ext_map_blocks() local
4137 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_map_blocks()
4139 trace_ext4_ext_show_extent(inode, ee_block, ee_start, ee_len); in ext4_ext_map_blocks()
4142 if (in_range(map->m_lblk, ee_block, ee_len)) { in ext4_ext_map_blocks()
4145 allocated = ee_len - (map->m_lblk - ee_block); in ext4_ext_map_blocks()
4147 map->m_lblk, ee_block, ee_len, newblock); in ext4_ext_map_blocks()
4253 newex.ee_len = cpu_to_le16(map->m_len); in ext4_ext_map_blocks()
4301 newex.ee_len = cpu_to_le16(ar.len); in ext4_ext_map_blocks()
5426 unsigned int credits, ee_len; in ext4_insert_range() local
5531 ee_len = ext4_ext_get_actual_len(extent); in ext4_insert_range()
5538 (offset_lblk < (ee_start_lblk + ee_len))) { in ext4_insert_range()
5746 ex1->ee_len = cpu_to_le16(e2_len); in ext4_swap_extents()
5747 ex2->ee_len = cpu_to_le16(e1_len); in ext4_swap_extents()