• Home
  • Raw
  • Download

Lines Matching refs:split

436 	struct extent_map *split = NULL;  in btrfs_drop_extent_cache()  local
451 if (!split) in btrfs_drop_extent_cache()
452 split = alloc_extent_map(); in btrfs_drop_extent_cache()
455 BUG_ON(!split || !split2); /* -ENOMEM */ in btrfs_drop_extent_cache()
483 split->start = em->start; in btrfs_drop_extent_cache()
484 split->len = start - em->start; in btrfs_drop_extent_cache()
485 split->orig_start = em->orig_start; in btrfs_drop_extent_cache()
486 split->block_start = em->block_start; in btrfs_drop_extent_cache()
489 split->block_len = em->block_len; in btrfs_drop_extent_cache()
491 split->block_len = split->len; in btrfs_drop_extent_cache()
493 split->bdev = em->bdev; in btrfs_drop_extent_cache()
494 split->flags = flags; in btrfs_drop_extent_cache()
495 split->compress_type = em->compress_type; in btrfs_drop_extent_cache()
496 ret = add_extent_mapping(em_tree, split); in btrfs_drop_extent_cache()
498 free_extent_map(split); in btrfs_drop_extent_cache()
499 split = split2; in btrfs_drop_extent_cache()
506 split->start = start + len; in btrfs_drop_extent_cache()
507 split->len = em->start + em->len - (start + len); in btrfs_drop_extent_cache()
508 split->bdev = em->bdev; in btrfs_drop_extent_cache()
509 split->flags = flags; in btrfs_drop_extent_cache()
510 split->compress_type = em->compress_type; in btrfs_drop_extent_cache()
513 split->block_len = em->block_len; in btrfs_drop_extent_cache()
514 split->block_start = em->block_start; in btrfs_drop_extent_cache()
515 split->orig_start = em->orig_start; in btrfs_drop_extent_cache()
517 split->block_len = split->len; in btrfs_drop_extent_cache()
518 split->block_start = em->block_start + diff; in btrfs_drop_extent_cache()
519 split->orig_start = split->start; in btrfs_drop_extent_cache()
522 ret = add_extent_mapping(em_tree, split); in btrfs_drop_extent_cache()
524 free_extent_map(split); in btrfs_drop_extent_cache()
525 split = NULL; in btrfs_drop_extent_cache()
534 if (split) in btrfs_drop_extent_cache()
535 free_extent_map(split); in btrfs_drop_extent_cache()
859 u64 split; in btrfs_mark_extent_written() local
873 split = start; in btrfs_mark_extent_written()
876 key.offset = split; in btrfs_mark_extent_written()
949 split = end; in btrfs_mark_extent_written()
951 new_key.offset = split; in btrfs_mark_extent_written()
966 split - key.offset); in btrfs_mark_extent_written()
971 btrfs_set_file_extent_offset(leaf, fi, split - orig_offset); in btrfs_mark_extent_written()
973 extent_end - split); in btrfs_mark_extent_written()
981 if (split == start) { in btrfs_mark_extent_written()