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()
2388 struct btrfs_ref generic_ref = { 0 }; in __btrfs_mod_ref() local
2430 btrfs_init_generic_ref(&generic_ref, action, bytenr, in __btrfs_mod_ref()
2432 btrfs_init_data_ref(&generic_ref, ref_root, key.objectid, in __btrfs_mod_ref()
2436 ret = btrfs_inc_extent_ref(trans, &generic_ref); in __btrfs_mod_ref()
2438 ret = btrfs_free_extent(trans, &generic_ref); in __btrfs_mod_ref()
2444 btrfs_init_generic_ref(&generic_ref, action, bytenr, in __btrfs_mod_ref()
2446 btrfs_init_tree_ref(&generic_ref, level - 1, ref_root, in __btrfs_mod_ref()
2449 ret = btrfs_inc_extent_ref(trans, &generic_ref); in __btrfs_mod_ref()
2451 ret = btrfs_free_extent(trans, &generic_ref); in __btrfs_mod_ref()
3263 struct btrfs_ref generic_ref = { 0 }; in btrfs_free_tree_block() local
3266 btrfs_init_generic_ref(&generic_ref, BTRFS_DROP_DELAYED_REF, in btrfs_free_tree_block()
3268 btrfs_init_tree_ref(&generic_ref, btrfs_header_level(buf), in btrfs_free_tree_block()
3272 btrfs_ref_tree_mod(fs_info, &generic_ref); in btrfs_free_tree_block()
3273 ret = btrfs_add_delayed_tree_ref(trans, &generic_ref, NULL); in btrfs_free_tree_block()
4796 struct btrfs_ref generic_ref = { 0 }; in btrfs_alloc_reserved_file_extent() local
4800 btrfs_init_generic_ref(&generic_ref, BTRFS_ADD_DELAYED_EXTENT, in btrfs_alloc_reserved_file_extent()
4802 btrfs_init_data_ref(&generic_ref, root->root_key.objectid, owner, in btrfs_alloc_reserved_file_extent()
4804 btrfs_ref_tree_mod(root->fs_info, &generic_ref); in btrfs_alloc_reserved_file_extent()
4806 return btrfs_add_delayed_data_ref(trans, &generic_ref, ram_bytes); in btrfs_alloc_reserved_file_extent()
4957 struct btrfs_ref generic_ref = { 0 }; in btrfs_alloc_tree_block() local
5011 btrfs_init_generic_ref(&generic_ref, BTRFS_ADD_DELAYED_EXTENT, in btrfs_alloc_tree_block()
5013 btrfs_init_tree_ref(&generic_ref, level, root_objectid, in btrfs_alloc_tree_block()
5015 btrfs_ref_tree_mod(fs_info, &generic_ref); in btrfs_alloc_tree_block()
5016 ret = btrfs_add_delayed_tree_ref(trans, &generic_ref, extent_op); in btrfs_alloc_tree_block()