Searched refs:generic_ref (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/fs/btrfs/ |
D | delayed-ref.h | 280 static inline void btrfs_init_generic_ref(struct btrfs_ref *generic_ref, in btrfs_init_generic_ref() argument 283 generic_ref->action = action; in btrfs_init_generic_ref() 284 generic_ref->bytenr = bytenr; in btrfs_init_generic_ref() 285 generic_ref->len = len; in btrfs_init_generic_ref() 286 generic_ref->parent = parent; in btrfs_init_generic_ref() 289 static inline void btrfs_init_tree_ref(struct btrfs_ref *generic_ref, in btrfs_init_tree_ref() argument 294 generic_ref->real_root = mod_root ?: root; in btrfs_init_tree_ref() 296 generic_ref->tree_ref.level = level; in btrfs_init_tree_ref() 297 generic_ref->tree_ref.owning_root = root; in btrfs_init_tree_ref() 298 generic_ref->type = BTRFS_REF_METADATA; in btrfs_init_tree_ref() [all …]
|
D | delayed-ref.c | 894 struct btrfs_ref *generic_ref, in btrfs_add_delayed_tree_ref() argument 905 int action = generic_ref->action; in btrfs_add_delayed_tree_ref() 906 int level = generic_ref->tree_ref.level; in btrfs_add_delayed_tree_ref() 907 u64 bytenr = generic_ref->bytenr; in btrfs_add_delayed_tree_ref() 908 u64 num_bytes = generic_ref->len; in btrfs_add_delayed_tree_ref() 909 u64 parent = generic_ref->parent; in btrfs_add_delayed_tree_ref() 912 is_system = (generic_ref->tree_ref.owning_root == BTRFS_CHUNK_TREE_OBJECTID); in btrfs_add_delayed_tree_ref() 914 ASSERT(generic_ref->type == BTRFS_REF_METADATA && generic_ref->action); in btrfs_add_delayed_tree_ref() 926 !generic_ref->skip_qgroup) { in btrfs_add_delayed_tree_ref() 941 generic_ref->tree_ref.owning_root, action, in btrfs_add_delayed_tree_ref() [all …]
|
D | ref-verify.c | 663 struct btrfs_ref *generic_ref) in btrfs_ref_tree_mod() argument 669 int action = generic_ref->action; in btrfs_ref_tree_mod() 672 u64 bytenr = generic_ref->bytenr; in btrfs_ref_tree_mod() 673 u64 num_bytes = generic_ref->len; in btrfs_ref_tree_mod() 674 u64 parent = generic_ref->parent; in btrfs_ref_tree_mod() 682 if (generic_ref->type == BTRFS_REF_METADATA) { in btrfs_ref_tree_mod() 684 ref_root = generic_ref->tree_ref.owning_root; in btrfs_ref_tree_mod() 685 owner = generic_ref->tree_ref.level; in btrfs_ref_tree_mod() 687 ref_root = generic_ref->data_ref.owning_root; in btrfs_ref_tree_mod() 688 owner = generic_ref->data_ref.ino; in btrfs_ref_tree_mod() [all …]
|
D | ref-verify.h | 13 struct btrfs_ref *generic_ref); 33 struct btrfs_ref *generic_ref) in btrfs_ref_tree_mod() argument
|
D | extent-tree.c | 1422 struct btrfs_ref *generic_ref) in btrfs_inc_extent_ref() argument 1427 ASSERT(generic_ref->type != BTRFS_REF_NOT_SET && in btrfs_inc_extent_ref() 1428 generic_ref->action); in btrfs_inc_extent_ref() 1429 BUG_ON(generic_ref->type == BTRFS_REF_METADATA && in btrfs_inc_extent_ref() 1430 generic_ref->tree_ref.owning_root == BTRFS_TREE_LOG_OBJECTID); in btrfs_inc_extent_ref() 1432 if (generic_ref->type == BTRFS_REF_METADATA) in btrfs_inc_extent_ref() 1433 ret = btrfs_add_delayed_tree_ref(trans, generic_ref, NULL); in btrfs_inc_extent_ref() 1435 ret = btrfs_add_delayed_data_ref(trans, generic_ref, 0); in btrfs_inc_extent_ref() 1437 btrfs_ref_tree_mod(fs_info, generic_ref); in btrfs_inc_extent_ref() 2415 struct btrfs_ref generic_ref = { 0 }; in __btrfs_mod_ref() local [all …]
|
D | extent-tree.h | 143 int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, struct btrfs_ref *generic_ref);
|