Lines Matching refs:split

703  * are split.
710 struct extent_map *split;
734 * because we need to split those two extent maps at the boundaries.
736 split = alloc_extent_map();
769 * In case we split the extent map, we want to preserve the
778 * split it, we can remove it directly.
787 if (!split) {
788 split = split2;
790 if (!split)
793 split->start = em->start;
794 split->len = start - em->start;
797 split->orig_start = em->orig_start;
798 split->block_start = em->block_start;
801 split->block_len = em->block_len;
803 split->block_len = split->len;
804 split->orig_block_len = max(split->block_len,
806 split->ram_bytes = em->ram_bytes;
808 split->orig_start = split->start;
809 split->block_len = 0;
810 split->block_start = em->block_start;
811 split->orig_block_len = 0;
812 split->ram_bytes = split->len;
815 split->generation = gen;
816 split->flags = flags;
817 split->compress_type = em->compress_type;
818 replace_extent_mapping(em_tree, em, split, modified);
819 free_extent_map(split);
820 split = split2;
824 if (!split) {
825 split = split2;
827 if (!split)
830 split->start = end;
831 split->len = em_end - end;
832 split->block_start = em->block_start;
833 split->flags = flags;
834 split->compress_type = em->compress_type;
835 split->generation = gen;
838 split->orig_block_len = max(em->block_len,
841 split->ram_bytes = em->ram_bytes;
843 split->block_len = em->block_len;
844 split->orig_start = em->orig_start;
848 split->block_len = split->len;
849 split->block_start += diff;
850 split->orig_start = em->orig_start;
853 split->ram_bytes = split->len;
854 split->orig_start = split->start;
855 split->block_len = 0;
856 split->orig_block_len = 0;
860 replace_extent_mapping(em_tree, em, split,
865 ret = add_extent_mapping(em_tree, split,
872 free_extent_map(split);
873 split = NULL;
886 * maps for split operations, @split and @split2.
898 ASSERT(!split);
918 free_extent_map(split);
967 * This function is used when an ordered_extent needs to be split.