Searched refs:generic_ref (Results 1 – 6 of 6) sorted by relevance
/Linux-v6.1/fs/btrfs/ |
D | delayed-ref.h | 256 static inline void btrfs_init_generic_ref(struct btrfs_ref *generic_ref, in btrfs_init_generic_ref() argument 259 generic_ref->action = action; in btrfs_init_generic_ref() 260 generic_ref->bytenr = bytenr; in btrfs_init_generic_ref() 261 generic_ref->len = len; in btrfs_init_generic_ref() 262 generic_ref->parent = parent; in btrfs_init_generic_ref() 265 static inline void btrfs_init_tree_ref(struct btrfs_ref *generic_ref, in btrfs_init_tree_ref() argument 270 generic_ref->real_root = mod_root ?: root; in btrfs_init_tree_ref() 272 generic_ref->tree_ref.level = level; in btrfs_init_tree_ref() 273 generic_ref->tree_ref.owning_root = root; in btrfs_init_tree_ref() 274 generic_ref->type = BTRFS_REF_METADATA; in btrfs_init_tree_ref() [all …]
|
D | delayed-ref.c | 912 struct btrfs_ref *generic_ref, in btrfs_add_delayed_tree_ref() argument 922 int action = generic_ref->action; in btrfs_add_delayed_tree_ref() 923 int level = generic_ref->tree_ref.level; in btrfs_add_delayed_tree_ref() 925 u64 bytenr = generic_ref->bytenr; in btrfs_add_delayed_tree_ref() 926 u64 num_bytes = generic_ref->len; in btrfs_add_delayed_tree_ref() 927 u64 parent = generic_ref->parent; in btrfs_add_delayed_tree_ref() 930 is_system = (generic_ref->tree_ref.owning_root == BTRFS_CHUNK_TREE_OBJECTID); in btrfs_add_delayed_tree_ref() 932 ASSERT(generic_ref->type == BTRFS_REF_METADATA && generic_ref->action); in btrfs_add_delayed_tree_ref() 944 !generic_ref->skip_qgroup) { in btrfs_add_delayed_tree_ref() 959 generic_ref->tree_ref.owning_root, action, in btrfs_add_delayed_tree_ref() [all …]
|
D | ref-verify.c | 660 struct btrfs_ref *generic_ref) in btrfs_ref_tree_mod() argument 666 int action = generic_ref->action; in btrfs_ref_tree_mod() 669 u64 bytenr = generic_ref->bytenr; in btrfs_ref_tree_mod() 670 u64 num_bytes = generic_ref->len; in btrfs_ref_tree_mod() 671 u64 parent = generic_ref->parent; in btrfs_ref_tree_mod() 679 if (generic_ref->type == BTRFS_REF_METADATA) { in btrfs_ref_tree_mod() 681 ref_root = generic_ref->tree_ref.owning_root; in btrfs_ref_tree_mod() 682 owner = generic_ref->tree_ref.level; in btrfs_ref_tree_mod() 684 ref_root = generic_ref->data_ref.owning_root; in btrfs_ref_tree_mod() 685 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 | 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 [all …]
|
D | ctree.h | 2919 struct btrfs_ref *generic_ref);
|