Lines Matching refs:ee_len

1219 	int depth, ee_len;  in ext4_ext_search_left()  local
1236 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_search_left()
1259 if (unlikely(*logical < (le32_to_cpu(ex->ee_block) + ee_len))) { in ext4_ext_search_left()
1262 *logical, le32_to_cpu(ex->ee_block), ee_len); in ext4_ext_search_left()
1266 *logical = le32_to_cpu(ex->ee_block) + ee_len - 1; in ext4_ext_search_left()
1267 *phys = ext4_ext_pblock(ex) + ee_len - 1; in ext4_ext_search_left()
1288 int ee_len; in ext4_ext_search_right() local
1305 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_search_right()
1327 if (unlikely(*logical < (le32_to_cpu(ex->ee_block) + ee_len))) { in ext4_ext_search_right()
1330 *logical, le32_to_cpu(ex->ee_block), ee_len); in ext4_ext_search_right()
1585 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_try_to_merge()
1641 newext->ee_len = cpu_to_le16(len1); in ext4_ext_check_overlap()
1647 newext->ee_len = cpu_to_le16(b2 - b1); in ext4_ext_check_overlap()
1704 ex->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ex) in ext4_ext_insert_extent()
1802 nearex->ee_len = newext->ee_len; in ext4_ext_insert_extent()
2028 ex->ee_len = cpu_to_le16(cex->ec_len); in ext4_ext_in_cache()
2134 unsigned short ee_len = ext4_ext_get_actual_len(ex); in ext4_remove_blocks() local
2143 sbi->s_ext_blocks += ee_len; in ext4_remove_blocks()
2145 if (ee_len < sbi->s_ext_min) in ext4_remove_blocks()
2146 sbi->s_ext_min = ee_len; in ext4_remove_blocks()
2147 if (ee_len > sbi->s_ext_max) in ext4_remove_blocks()
2148 sbi->s_ext_max = ee_len; in ext4_remove_blocks()
2155 && to == le32_to_cpu(ex->ee_block) + ee_len - 1) { in ext4_remove_blocks()
2160 num = le32_to_cpu(ex->ee_block) + ee_len - from; in ext4_remove_blocks()
2161 start = ext4_ext_pblock(ex) + ee_len - num; in ext4_remove_blocks()
2165 && to <= le32_to_cpu(ex->ee_block) + ee_len - 1) { in ext4_remove_blocks()
2167 from, to, le32_to_cpu(ex->ee_block), ee_len); in ext4_remove_blocks()
2171 from, to, le32_to_cpu(ex->ee_block), ee_len); in ext4_remove_blocks()
2277 ex->ee_len = cpu_to_le16(num); in ext4_ext_rm_leaf()
2519 unsigned int ee_len; in ext4_ext_zeroout() local
2522 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_zeroout()
2525 ret = sb_issue_zeroout(inode->i_sb, ee_pblock, ee_len, GFP_NOFS); in ext4_ext_zeroout()
2554 unsigned int allocated, ee_len, depth; in ext4_ext_convert_to_initialized() local
2573 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_convert_to_initialized()
2574 allocated = ee_len - (map->m_lblk - ee_block); in ext4_ext_convert_to_initialized()
2579 orig_ex.ee_len = cpu_to_le16(ee_len); in ext4_ext_convert_to_initialized()
2586 may_zeroout = ee_block + ee_len <= eof_block; in ext4_ext_convert_to_initialized()
2592 if (ee_len <= 2*EXT4_EXT_ZERO_LEN && may_zeroout) { in ext4_ext_convert_to_initialized()
2598 ex->ee_len = orig_ex.ee_len; in ext4_ext_convert_to_initialized()
2608 ex1->ee_len = cpu_to_le16(map->m_lblk - ee_block); in ext4_ext_convert_to_initialized()
2618 ex2->ee_len = cpu_to_le16(map->m_len); in ext4_ext_convert_to_initialized()
2632 ex->ee_len = cpu_to_le16(ee_len - allocated); in ext4_ext_convert_to_initialized()
2640 ex3->ee_len = cpu_to_le16(allocated); in ext4_ext_convert_to_initialized()
2648 ex->ee_len = orig_ex.ee_len; in ext4_ext_convert_to_initialized()
2697 ex3->ee_len = cpu_to_le16(allocated - map->m_len); in ext4_ext_convert_to_initialized()
2706 ex->ee_len = orig_ex.ee_len; in ext4_ext_convert_to_initialized()
2724 ee_len -= ext4_ext_get_actual_len(ex3); in ext4_ext_convert_to_initialized()
2725 orig_ex.ee_len = cpu_to_le16(ee_len); in ext4_ext_convert_to_initialized()
2726 may_zeroout = ee_block + ee_len <= eof_block; in ext4_ext_convert_to_initialized()
2750 if (le16_to_cpu(orig_ex.ee_len) <= EXT4_EXT_ZERO_LEN && in ext4_ext_convert_to_initialized()
2757 ex->ee_len = orig_ex.ee_len; in ext4_ext_convert_to_initialized()
2772 ex1->ee_len = cpu_to_le16(map->m_lblk - ee_block); in ext4_ext_convert_to_initialized()
2779 ex2->ee_len = cpu_to_le16(allocated); in ext4_ext_convert_to_initialized()
2826 ex->ee_len = orig_ex.ee_len; in ext4_ext_convert_to_initialized()
2839 ex->ee_len = orig_ex.ee_len; in ext4_ext_convert_to_initialized()
2879 unsigned int allocated, ee_len, depth; in ext4_split_unwritten_extents() local
2896 ee_len = ext4_ext_get_actual_len(ex); in ext4_split_unwritten_extents()
2897 allocated = ee_len - (map->m_lblk - ee_block); in ext4_split_unwritten_extents()
2902 orig_ex.ee_len = cpu_to_le16(ee_len); in ext4_split_unwritten_extents()
2909 may_zeroout = ee_block + ee_len <= eof_block; in ext4_split_unwritten_extents()
2925 ex1->ee_len = cpu_to_le16(map->m_lblk - ee_block); in ext4_split_unwritten_extents()
2935 ex2->ee_len = cpu_to_le16(map->m_len); in ext4_split_unwritten_extents()
2942 ex3->ee_len = cpu_to_le16(allocated - map->m_len); in ext4_split_unwritten_extents()
2951 ex->ee_len = orig_ex.ee_len; in ext4_split_unwritten_extents()
2969 ee_len -= ext4_ext_get_actual_len(ex3); in ext4_split_unwritten_extents()
2970 orig_ex.ee_len = cpu_to_le16(ee_len); in ext4_split_unwritten_extents()
2971 may_zeroout = ee_block + ee_len <= eof_block; in ext4_split_unwritten_extents()
2997 ex1->ee_len = cpu_to_le16(map->m_lblk - ee_block); in ext4_split_unwritten_extents()
3007 ex2->ee_len = cpu_to_le16(allocated); in ext4_split_unwritten_extents()
3023 ex->ee_len = orig_ex.ee_len; in ext4_split_unwritten_extents()
3036 ex->ee_len = orig_ex.ee_len; in ext4_split_unwritten_extents()
3363 unsigned short ee_len; in ext4_ext_map_blocks() local
3369 ee_len = ext4_ext_get_actual_len(ex); in ext4_ext_map_blocks()
3371 if (in_range(map->m_lblk, ee_block, ee_len)) { in ext4_ext_map_blocks()
3374 allocated = ee_len - (map->m_lblk - ee_block); in ext4_ext_map_blocks()
3376 ee_block, ee_len, newblock); in ext4_ext_map_blocks()
3381 ee_len, ee_start); in ext4_ext_map_blocks()
3432 newex.ee_len = cpu_to_le16(map->m_len); in ext4_ext_map_blocks()
3457 newex.ee_len = cpu_to_le16(ar.len); in ext4_ext_map_blocks()