• Home
  • Raw
  • Download

Lines Matching refs:split

535 	struct extent_map *split = NULL;  in btrfs_drop_extent_cache()  local
555 if (!split) in btrfs_drop_extent_cache()
556 split = alloc_extent_map(); in btrfs_drop_extent_cache()
559 if (!split || !split2) in btrfs_drop_extent_cache()
591 split->start = em->start; in btrfs_drop_extent_cache()
592 split->len = start - em->start; in btrfs_drop_extent_cache()
595 split->orig_start = em->orig_start; in btrfs_drop_extent_cache()
596 split->block_start = em->block_start; in btrfs_drop_extent_cache()
599 split->block_len = em->block_len; in btrfs_drop_extent_cache()
601 split->block_len = split->len; in btrfs_drop_extent_cache()
602 split->orig_block_len = max(split->block_len, in btrfs_drop_extent_cache()
604 split->ram_bytes = em->ram_bytes; in btrfs_drop_extent_cache()
606 split->orig_start = split->start; in btrfs_drop_extent_cache()
607 split->block_len = 0; in btrfs_drop_extent_cache()
608 split->block_start = em->block_start; in btrfs_drop_extent_cache()
609 split->orig_block_len = 0; in btrfs_drop_extent_cache()
610 split->ram_bytes = split->len; in btrfs_drop_extent_cache()
613 split->generation = gen; in btrfs_drop_extent_cache()
614 split->bdev = em->bdev; in btrfs_drop_extent_cache()
615 split->flags = flags; in btrfs_drop_extent_cache()
616 split->compress_type = em->compress_type; in btrfs_drop_extent_cache()
617 replace_extent_mapping(em_tree, em, split, modified); in btrfs_drop_extent_cache()
618 free_extent_map(split); in btrfs_drop_extent_cache()
619 split = split2; in btrfs_drop_extent_cache()
625 split->start = start + len; in btrfs_drop_extent_cache()
626 split->len = em->start + em->len - (start + len); in btrfs_drop_extent_cache()
627 split->bdev = em->bdev; in btrfs_drop_extent_cache()
628 split->flags = flags; in btrfs_drop_extent_cache()
629 split->compress_type = em->compress_type; in btrfs_drop_extent_cache()
630 split->generation = gen; in btrfs_drop_extent_cache()
633 split->orig_block_len = max(em->block_len, in btrfs_drop_extent_cache()
636 split->ram_bytes = em->ram_bytes; in btrfs_drop_extent_cache()
638 split->block_len = em->block_len; in btrfs_drop_extent_cache()
639 split->block_start = em->block_start; in btrfs_drop_extent_cache()
640 split->orig_start = em->orig_start; in btrfs_drop_extent_cache()
642 split->block_len = split->len; in btrfs_drop_extent_cache()
643 split->block_start = em->block_start in btrfs_drop_extent_cache()
645 split->orig_start = em->orig_start; in btrfs_drop_extent_cache()
648 split->ram_bytes = split->len; in btrfs_drop_extent_cache()
649 split->orig_start = split->start; in btrfs_drop_extent_cache()
650 split->block_len = 0; in btrfs_drop_extent_cache()
651 split->block_start = em->block_start; in btrfs_drop_extent_cache()
652 split->orig_block_len = 0; in btrfs_drop_extent_cache()
656 replace_extent_mapping(em_tree, em, split, in btrfs_drop_extent_cache()
659 ret = add_extent_mapping(em_tree, split, in btrfs_drop_extent_cache()
663 free_extent_map(split); in btrfs_drop_extent_cache()
664 split = NULL; in btrfs_drop_extent_cache()
676 if (split) in btrfs_drop_extent_cache()
677 free_extent_map(split); in btrfs_drop_extent_cache()
1088 u64 split; in btrfs_mark_extent_written() local
1100 split = start; in btrfs_mark_extent_written()
1103 key.offset = split; in btrfs_mark_extent_written()
1196 split = end; in btrfs_mark_extent_written()
1198 new_key.offset = split; in btrfs_mark_extent_written()
1214 split - key.offset); in btrfs_mark_extent_written()
1220 btrfs_set_file_extent_offset(leaf, fi, split - orig_offset); in btrfs_mark_extent_written()
1222 extent_end - split); in btrfs_mark_extent_written()
1233 if (split == start) { in btrfs_mark_extent_written()