Lines Matching refs:ins
171 struct ocfs2_extent_map_item *ins) in ocfs2_try_to_merge_extent_map() argument
176 if (ins->ei_phys == (emi->ei_phys + emi->ei_clusters) && in ocfs2_try_to_merge_extent_map()
177 ins->ei_cpos == (emi->ei_cpos + emi->ei_clusters) && in ocfs2_try_to_merge_extent_map()
178 ins->ei_flags == emi->ei_flags) { in ocfs2_try_to_merge_extent_map()
179 emi->ei_clusters += ins->ei_clusters; in ocfs2_try_to_merge_extent_map()
181 } else if ((ins->ei_phys + ins->ei_clusters) == emi->ei_phys && in ocfs2_try_to_merge_extent_map()
182 (ins->ei_cpos + ins->ei_clusters) == emi->ei_cpos && in ocfs2_try_to_merge_extent_map()
183 ins->ei_flags == emi->ei_flags) { in ocfs2_try_to_merge_extent_map()
184 emi->ei_phys = ins->ei_phys; in ocfs2_try_to_merge_extent_map()
185 emi->ei_cpos = ins->ei_cpos; in ocfs2_try_to_merge_extent_map()
186 emi->ei_clusters += ins->ei_clusters; in ocfs2_try_to_merge_extent_map()
195 if (ocfs2_ei_is_contained(emi, ins) || in ocfs2_try_to_merge_extent_map()
196 ocfs2_ei_is_contained(ins, emi)) { in ocfs2_try_to_merge_extent_map()
197 ocfs2_copy_emi_fields(emi, ins); in ocfs2_try_to_merge_extent_map()
219 struct ocfs2_extent_map_item ins; in ocfs2_extent_map_insert_rec() local
221 ins.ei_cpos = le32_to_cpu(rec->e_cpos); in ocfs2_extent_map_insert_rec()
222 ins.ei_phys = ocfs2_blocks_to_clusters(inode->i_sb, in ocfs2_extent_map_insert_rec()
224 ins.ei_clusters = le16_to_cpu(rec->e_leaf_clusters); in ocfs2_extent_map_insert_rec()
225 ins.ei_flags = rec->e_flags; in ocfs2_extent_map_insert_rec()
231 if (ocfs2_try_to_merge_extent_map(emi, &ins)) { in ocfs2_extent_map_insert_rec()
256 ocfs2_copy_emi_fields(new_emi, &ins); in ocfs2_extent_map_insert_rec()
265 ocfs2_copy_emi_fields(emi, &ins); in ocfs2_extent_map_insert_rec()