Lines Matching refs:generic_ref
1378 struct btrfs_ref *generic_ref) in btrfs_inc_extent_ref() argument
1383 ASSERT(generic_ref->type != BTRFS_REF_NOT_SET && in btrfs_inc_extent_ref()
1384 generic_ref->action); in btrfs_inc_extent_ref()
1385 BUG_ON(generic_ref->type == BTRFS_REF_METADATA && in btrfs_inc_extent_ref()
1386 generic_ref->tree_ref.owning_root == BTRFS_TREE_LOG_OBJECTID); in btrfs_inc_extent_ref()
1388 if (generic_ref->type == BTRFS_REF_METADATA) in btrfs_inc_extent_ref()
1389 ret = btrfs_add_delayed_tree_ref(trans, generic_ref, NULL); in btrfs_inc_extent_ref()
1391 ret = btrfs_add_delayed_data_ref(trans, generic_ref, 0); in btrfs_inc_extent_ref()
1393 btrfs_ref_tree_mod(fs_info, generic_ref); in btrfs_inc_extent_ref()
2391 struct btrfs_ref generic_ref = { 0 }; in __btrfs_mod_ref() local
2433 btrfs_init_generic_ref(&generic_ref, action, bytenr, in __btrfs_mod_ref()
2435 btrfs_init_data_ref(&generic_ref, ref_root, key.objectid, in __btrfs_mod_ref()
2439 ret = btrfs_inc_extent_ref(trans, &generic_ref); in __btrfs_mod_ref()
2441 ret = btrfs_free_extent(trans, &generic_ref); in __btrfs_mod_ref()
2447 btrfs_init_generic_ref(&generic_ref, action, bytenr, in __btrfs_mod_ref()
2449 btrfs_init_tree_ref(&generic_ref, level - 1, ref_root, in __btrfs_mod_ref()
2452 ret = btrfs_inc_extent_ref(trans, &generic_ref); in __btrfs_mod_ref()
2454 ret = btrfs_free_extent(trans, &generic_ref); in __btrfs_mod_ref()
3266 struct btrfs_ref generic_ref = { 0 }; in btrfs_free_tree_block() local
3269 btrfs_init_generic_ref(&generic_ref, BTRFS_DROP_DELAYED_REF, in btrfs_free_tree_block()
3271 btrfs_init_tree_ref(&generic_ref, btrfs_header_level(buf), in btrfs_free_tree_block()
3275 btrfs_ref_tree_mod(fs_info, &generic_ref); in btrfs_free_tree_block()
3276 ret = btrfs_add_delayed_tree_ref(trans, &generic_ref, NULL); in btrfs_free_tree_block()
4799 struct btrfs_ref generic_ref = { 0 }; in btrfs_alloc_reserved_file_extent() local
4803 btrfs_init_generic_ref(&generic_ref, BTRFS_ADD_DELAYED_EXTENT, in btrfs_alloc_reserved_file_extent()
4805 btrfs_init_data_ref(&generic_ref, root->root_key.objectid, owner, in btrfs_alloc_reserved_file_extent()
4807 btrfs_ref_tree_mod(root->fs_info, &generic_ref); in btrfs_alloc_reserved_file_extent()
4809 return btrfs_add_delayed_data_ref(trans, &generic_ref, ram_bytes); in btrfs_alloc_reserved_file_extent()
4960 struct btrfs_ref generic_ref = { 0 }; in btrfs_alloc_tree_block() local
5014 btrfs_init_generic_ref(&generic_ref, BTRFS_ADD_DELAYED_EXTENT, in btrfs_alloc_tree_block()
5016 btrfs_init_tree_ref(&generic_ref, level, root_objectid, in btrfs_alloc_tree_block()
5018 btrfs_ref_tree_mod(fs_info, &generic_ref); in btrfs_alloc_tree_block()
5019 ret = btrfs_add_delayed_tree_ref(trans, &generic_ref, extent_op); in btrfs_alloc_tree_block()