Lines Matching refs:split

705 	struct extent_map *split;  in btrfs_drop_extent_map_range()  local
731 split = alloc_extent_map(); in btrfs_drop_extent_map_range()
779 if (!split) { in btrfs_drop_extent_map_range()
780 split = split2; in btrfs_drop_extent_map_range()
782 if (!split) in btrfs_drop_extent_map_range()
785 split->start = em->start; in btrfs_drop_extent_map_range()
786 split->len = start - em->start; in btrfs_drop_extent_map_range()
789 split->orig_start = em->orig_start; in btrfs_drop_extent_map_range()
790 split->block_start = em->block_start; in btrfs_drop_extent_map_range()
793 split->block_len = em->block_len; in btrfs_drop_extent_map_range()
795 split->block_len = split->len; in btrfs_drop_extent_map_range()
796 split->orig_block_len = max(split->block_len, in btrfs_drop_extent_map_range()
798 split->ram_bytes = em->ram_bytes; in btrfs_drop_extent_map_range()
800 split->orig_start = split->start; in btrfs_drop_extent_map_range()
801 split->block_len = 0; in btrfs_drop_extent_map_range()
802 split->block_start = em->block_start; in btrfs_drop_extent_map_range()
803 split->orig_block_len = 0; in btrfs_drop_extent_map_range()
804 split->ram_bytes = split->len; in btrfs_drop_extent_map_range()
807 split->generation = gen; in btrfs_drop_extent_map_range()
808 split->flags = flags; in btrfs_drop_extent_map_range()
809 split->compress_type = em->compress_type; in btrfs_drop_extent_map_range()
810 replace_extent_mapping(em_tree, em, split, modified); in btrfs_drop_extent_map_range()
811 free_extent_map(split); in btrfs_drop_extent_map_range()
812 split = split2; in btrfs_drop_extent_map_range()
816 if (!split) { in btrfs_drop_extent_map_range()
817 split = split2; in btrfs_drop_extent_map_range()
819 if (!split) in btrfs_drop_extent_map_range()
822 split->start = start + len; in btrfs_drop_extent_map_range()
823 split->len = em_end - (start + len); in btrfs_drop_extent_map_range()
824 split->block_start = em->block_start; in btrfs_drop_extent_map_range()
825 split->flags = flags; in btrfs_drop_extent_map_range()
826 split->compress_type = em->compress_type; in btrfs_drop_extent_map_range()
827 split->generation = gen; in btrfs_drop_extent_map_range()
830 split->orig_block_len = max(em->block_len, in btrfs_drop_extent_map_range()
833 split->ram_bytes = em->ram_bytes; in btrfs_drop_extent_map_range()
835 split->block_len = em->block_len; in btrfs_drop_extent_map_range()
836 split->orig_start = em->orig_start; in btrfs_drop_extent_map_range()
840 split->block_len = split->len; in btrfs_drop_extent_map_range()
841 split->block_start += diff; in btrfs_drop_extent_map_range()
842 split->orig_start = em->orig_start; in btrfs_drop_extent_map_range()
845 split->ram_bytes = split->len; in btrfs_drop_extent_map_range()
846 split->orig_start = split->start; in btrfs_drop_extent_map_range()
847 split->block_len = 0; in btrfs_drop_extent_map_range()
848 split->orig_block_len = 0; in btrfs_drop_extent_map_range()
852 replace_extent_mapping(em_tree, em, split, in btrfs_drop_extent_map_range()
857 ret = add_extent_mapping(em_tree, split, in btrfs_drop_extent_map_range()
864 free_extent_map(split); in btrfs_drop_extent_map_range()
865 split = NULL; in btrfs_drop_extent_map_range()
890 ASSERT(!split); in btrfs_drop_extent_map_range()
910 free_extent_map(split); in btrfs_drop_extent_map_range()