• Home
  • Raw
  • Download

Lines Matching refs:ins

51 				      struct btrfs_key *ins, int ref_mod);
1525 struct btrfs_key ins; in run_delayed_data_ref() local
1530 ins.objectid = node->bytenr; in run_delayed_data_ref()
1531 ins.offset = node->num_bytes; in run_delayed_data_ref()
1532 ins.type = BTRFS_EXTENT_ITEM_KEY; in run_delayed_data_ref()
1546 ref->offset, &ins, in run_delayed_data_ref()
3685 struct btrfs_key *ins, in find_free_extent_update_loop() argument
3696 if (!ins->objectid && ffe_ctl->loop >= LOOP_CACHING_WAIT && in find_free_extent_update_loop()
3700 if (!ins->objectid && ++(ffe_ctl->index) < BTRFS_NR_RAID_TYPES) in find_free_extent_update_loop()
3703 if (ins->objectid) { in find_free_extent_update_loop()
3706 last_ptr->window_start = ins->objectid; in find_free_extent_update_loop()
3816 u64 hint_byte, struct btrfs_key *ins, in find_free_extent() argument
3844 ins->type = BTRFS_EXTENT_ITEM_KEY; in find_free_extent()
3845 ins->objectid = 0; in find_free_extent()
3846 ins->offset = 0; in find_free_extent()
3870 ins->offset = space_info->max_extent_size; in find_free_extent()
4062 ins->objectid = ffe_ctl.search_start; in find_free_extent()
4063 ins->offset = num_bytes; in find_free_extent()
4079 ret = find_free_extent_update_loop(fs_info, last_ptr, ins, &ffe_ctl, in find_free_extent()
4094 ins->offset = ffe_ctl.max_extent_size; in find_free_extent()
4149 struct btrfs_key *ins, int is_data, int delalloc) in btrfs_reserve_extent() argument
4160 hint_byte, ins, flags, delalloc); in btrfs_reserve_extent()
4162 btrfs_dec_block_group_reservations(fs_info, ins->objectid); in btrfs_reserve_extent()
4164 if (!final_tried && ins->offset) { in btrfs_reserve_extent()
4165 num_bytes = min(num_bytes >> 1, ins->offset); in btrfs_reserve_extent()
4232 struct btrfs_key *ins, int ref_mod) in alloc_reserved_file_extent() argument
4256 ins, size); in alloc_reserved_file_extent()
4289 ret = remove_from_free_space_tree(trans, ins->objectid, ins->offset); in alloc_reserved_file_extent()
4293 ret = btrfs_update_block_group(trans, ins->objectid, ins->offset, 1); in alloc_reserved_file_extent()
4296 ins->objectid, ins->offset); in alloc_reserved_file_extent()
4299 trace_btrfs_reserved_extent_alloc(fs_info, ins->objectid, ins->offset); in alloc_reserved_file_extent()
4399 struct btrfs_key *ins) in btrfs_alloc_reserved_file_extent() argument
4407 ins->objectid, ins->offset, 0); in btrfs_alloc_reserved_file_extent()
4422 struct btrfs_key *ins) in btrfs_alloc_logged_file_extent() argument
4434 ret = __exclude_logged_extent(fs_info, ins->objectid, in btrfs_alloc_logged_file_extent()
4435 ins->offset); in btrfs_alloc_logged_file_extent()
4440 block_group = btrfs_lookup_block_group(fs_info, ins->objectid); in btrfs_alloc_logged_file_extent()
4447 space_info->bytes_reserved += ins->offset; in btrfs_alloc_logged_file_extent()
4448 block_group->reserved += ins->offset; in btrfs_alloc_logged_file_extent()
4453 offset, ins, 1); in btrfs_alloc_logged_file_extent()
4455 btrfs_pin_extent(fs_info, ins->objectid, ins->offset, 1); in btrfs_alloc_logged_file_extent()
4534 struct btrfs_key ins; in btrfs_alloc_tree_block() local
4559 empty_size, hint, &ins, 0, 0); in btrfs_alloc_tree_block()
4563 buf = btrfs_init_new_buffer(trans, root, ins.objectid, level, in btrfs_alloc_tree_block()
4572 parent = ins.objectid; in btrfs_alloc_tree_block()
4594 ins.objectid, ins.offset, parent); in btrfs_alloc_tree_block()
4611 btrfs_free_reserved_extent(fs_info, ins.objectid, ins.offset, 0); in btrfs_alloc_tree_block()