/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | ref-verify.c | 48 * were called with since it could be different from ref_root. We also store 312 static int add_tree_block(struct btrfs_fs_info *fs_info, u64 ref_root, in add_tree_block() argument 326 ref->root_objectid = ref_root; in add_tree_block() 332 be = add_block_entry(fs_info, bytenr, fs_info->nodesize, ref_root); in add_tree_block() 342 ASSERT(ref_root); in add_tree_block() 343 re = lookup_root_entry(&be->roots, ref_root); in add_tree_block() 394 u64 ref_root = btrfs_extent_data_ref_root(leaf, dref); in add_extent_data_ref() local 402 be = add_block_entry(fs_info, bytenr, num_bytes, ref_root); in add_extent_data_ref() 411 ref->root_objectid = ref_root; in add_extent_data_ref() 421 re = lookup_root_entry(&be->roots, ref_root); in add_extent_data_ref() 675 u64 ref_root = 0; btrfs_ref_tree_mod() local [all...] |
H A D | delayed-ref.h | 308 u64 ref_root, u64 ino, u64 offset, u64 mod_root, in btrfs_init_data_ref() 313 generic_ref->real_root = mod_root ?: ref_root; in btrfs_init_data_ref() 315 generic_ref->data_ref.owning_root = ref_root; in btrfs_init_data_ref() 319 if (skip_qgroup || !(is_fstree(ref_root) && in btrfs_init_data_ref() 307 btrfs_init_data_ref(struct btrfs_ref *generic_ref, u64 ref_root, u64 ino, u64 offset, u64 mod_root, bool skip_qgroup) btrfs_init_data_ref() argument
|
H A D | delayed-ref.c | 719 u64 bytenr, u64 num_bytes, u64 ref_root, in init_delayed_ref_head() 773 if (ref_root && reserved) { in init_delayed_ref_head() 775 qrecord->data_rsv_refroot = ref_root; in init_delayed_ref_head() 852 * @ref_root: The id of the root where this modification has originated, this 866 u64 bytenr, u64 num_bytes, u64 ref_root, in init_delayed_ref_common() 874 if (is_fstree(ref_root)) in init_delayed_ref_common() 1001 u64 ref_root = generic_ref->data_ref.owning_root; in btrfs_add_delayed_data_ref() local 1016 ref_root, action, ref_type); in btrfs_add_delayed_data_ref() 1017 ref->root = ref_root; in btrfs_add_delayed_data_ref() 1040 init_delayed_ref_head(head_ref, record, bytenr, num_bytes, ref_root, in btrfs_add_delayed_data_ref() 717 init_delayed_ref_head(struct btrfs_delayed_ref_head *head_ref, struct btrfs_qgroup_extent_record *qrecord, u64 bytenr, u64 num_bytes, u64 ref_root, u64 reserved, int action, bool is_data, bool is_system) init_delayed_ref_head() argument 864 init_delayed_ref_common(struct btrfs_fs_info *fs_info, struct btrfs_delayed_ref_node *ref, u64 bytenr, u64 num_bytes, u64 ref_root, int action, u8 ref_type) init_delayed_ref_common() argument [all...] |
H A D | qgroup.h | 364 u64 ref_root, u64 num_bytes,
|
H A D | qgroup.c | 1379 struct ulist *tmp, u64 ref_root, in __qgroup_excl_accounting() 1389 qgroup = find_qgroup_rb(fs_info, ref_root); in __qgroup_excl_accounting() 3159 u64 ref_root = root->root_key.objectid; in qgroup_reserve() local 3163 if (!is_fstree(ref_root)) in qgroup_reserve() 3177 qgroup = find_qgroup_rb(fs_info, ref_root); in qgroup_reserve() 3217 u64 ref_root, u64 num_bytes, in btrfs_qgroup_free_refroot() 3225 if (!is_fstree(ref_root)) in btrfs_qgroup_free_refroot() 3240 qgroup = find_qgroup_rb(fs_info, ref_root); in btrfs_qgroup_free_refroot() 4119 static void qgroup_convert_meta(struct btrfs_fs_info *fs_info, u64 ref_root, in qgroup_convert_meta() argument 4131 qgroup = find_qgroup_rb(fs_info, ref_root); in qgroup_convert_meta() 1378 __qgroup_excl_accounting(struct btrfs_fs_info *fs_info, struct ulist *tmp, u64 ref_root, struct btrfs_qgroup *src, int sign) __qgroup_excl_accounting() argument 3216 btrfs_qgroup_free_refroot(struct btrfs_fs_info *fs_info, u64 ref_root, u64 num_bytes, enum btrfs_qgroup_rsv_type type) btrfs_qgroup_free_refroot() argument [all...] |
H A D | extent-tree.c | 1546 u64 ref_root = 0; in run_delayed_data_ref() local 1558 ref_root = ref->root; in run_delayed_data_ref() 1563 ret = alloc_reserved_file_extent(trans, parent, ref_root, in run_delayed_data_ref() 1568 ret = __btrfs_inc_extent_ref(trans, node, parent, ref_root, in run_delayed_data_ref() 1573 ref_root, ref->objectid, in run_delayed_data_ref() 1700 u64 ref_root = 0; in run_delayed_tree_ref() local 1707 ref_root = ref->root; in run_delayed_tree_ref() 1711 "btree block %llu has %d references rather than 1: action %d ref_root %llu parent %llu", in run_delayed_tree_ref() 1712 node->bytenr, node->ref_mod, node->action, ref_root, in run_delayed_tree_ref() 1720 ret = __btrfs_inc_extent_ref(trans, node, parent, ref_root, in run_delayed_tree_ref() 2411 u64 ref_root; __btrfs_mod_ref() local [all...] |
H A D | scrub.c | 521 u64 ref_root; in scrub_print_common_warning() local 525 item_size, &ref_root, in scrub_print_common_warning() 539 ref_level, ref_root); in scrub_print_common_warning()
|
H A D | inode.c | 276 u64 ref_root; in print_data_reloc_error() local 281 item_size, &ref_root, in print_data_reloc_error() 296 ref_level, ref_root); in print_data_reloc_error()
|
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | delayed-ref.h | 190 u64 ref_root; member 285 u64 ref_root, u64 ino, u64 offset) in btrfs_init_data_ref() 289 generic_ref->real_root = ref_root; in btrfs_init_data_ref() 290 generic_ref->data_ref.ref_root = ref_root; in btrfs_init_data_ref() 284 btrfs_init_data_ref(struct btrfs_ref *generic_ref, u64 ref_root, u64 ino, u64 offset) btrfs_init_data_ref() argument
|
H A D | ref-verify.c | 45 * were called with since it could be different from ref_root. We also store 309 static int add_tree_block(struct btrfs_fs_info *fs_info, u64 ref_root, in add_tree_block() argument 323 ref->root_objectid = ref_root; in add_tree_block() 329 be = add_block_entry(fs_info, bytenr, fs_info->nodesize, ref_root); in add_tree_block() 339 ASSERT(ref_root); in add_tree_block() 340 re = lookup_root_entry(&be->roots, ref_root); in add_tree_block() 391 u64 ref_root = btrfs_extent_data_ref_root(leaf, dref); in add_extent_data_ref() local 399 be = add_block_entry(fs_info, bytenr, num_bytes, ref_root); in add_extent_data_ref() 408 ref->root_objectid = ref_root; in add_extent_data_ref() 418 re = lookup_root_entry(&be->roots, ref_root); in add_extent_data_ref() 684 u64 ref_root; btrfs_ref_tree_mod() local [all...] |
H A D | delayed-ref.c | 751 u64 bytenr, u64 num_bytes, u64 ref_root, in init_delayed_ref_head() 801 if (ref_root && reserved) { in init_delayed_ref_head() 803 qrecord->data_rsv_refroot = ref_root; in init_delayed_ref_head() 885 * @ref_root: The id of the root where this modification has originated, this 899 u64 bytenr, u64 num_bytes, u64 ref_root, in init_delayed_ref_common() 907 if (is_fstree(ref_root)) in init_delayed_ref_common() 1038 u64 ref_root = generic_ref->data_ref.ref_root; in btrfs_add_delayed_data_ref() local 1053 ref_root, action, ref_type); in btrfs_add_delayed_data_ref() 1054 ref->root = ref_root; in btrfs_add_delayed_data_ref() 749 init_delayed_ref_head(struct btrfs_delayed_ref_head *head_ref, struct btrfs_qgroup_extent_record *qrecord, u64 bytenr, u64 num_bytes, u64 ref_root, u64 reserved, int action, bool is_data, bool is_system) init_delayed_ref_head() argument 897 init_delayed_ref_common(struct btrfs_fs_info *fs_info, struct btrfs_delayed_ref_node *ref, u64 bytenr, u64 num_bytes, u64 ref_root, int action, u8 ref_type) init_delayed_ref_common() argument [all...] |
H A D | extent-tree.c | 1488 u64 ref_root = 0; in run_delayed_data_ref() local 1500 ref_root = ref->root; in run_delayed_data_ref() 1505 ret = alloc_reserved_file_extent(trans, parent, ref_root, in run_delayed_data_ref() 1510 ret = __btrfs_inc_extent_ref(trans, node, parent, ref_root, in run_delayed_data_ref() 1515 ref_root, ref->objectid, in run_delayed_data_ref() 1636 u64 ref_root = 0; in run_delayed_tree_ref() local 1643 ref_root = ref->root; in run_delayed_tree_ref() 1647 "btree block %llu has %d references rather than 1: action %d ref_root %llu parent %llu", in run_delayed_tree_ref() 1648 node->bytenr, node->ref_mod, node->action, ref_root, in run_delayed_tree_ref() 1656 ret = __btrfs_inc_extent_ref(trans, node, parent, ref_root, in run_delayed_tree_ref() 2400 u64 ref_root; __btrfs_mod_ref() local [all...] |
H A D | qgroup.h | 349 u64 ref_root, u64 num_bytes,
|
H A D | qgroup.c | 1328 struct ulist *tmp, u64 ref_root, in __qgroup_excl_accounting() 1338 qgroup = find_qgroup_rb(fs_info, ref_root); in __qgroup_excl_accounting() 3076 u64 ref_root = root->root_key.objectid; in qgroup_reserve() local 3081 if (!is_fstree(ref_root)) in qgroup_reserve() 3095 qgroup = find_qgroup_rb(fs_info, ref_root); in qgroup_reserve() 3156 u64 ref_root, u64 num_bytes, in btrfs_qgroup_free_refroot() 3164 if (!is_fstree(ref_root)) in btrfs_qgroup_free_refroot() 3179 qgroup = find_qgroup_rb(fs_info, ref_root); in btrfs_qgroup_free_refroot() 4060 static void qgroup_convert_meta(struct btrfs_fs_info *fs_info, u64 ref_root, in qgroup_convert_meta() argument 4074 qgroup = find_qgroup_rb(fs_info, ref_root); in qgroup_convert_meta() 1327 __qgroup_excl_accounting(struct btrfs_fs_info *fs_info, struct ulist *tmp, u64 ref_root, struct btrfs_qgroup *src, int sign) __qgroup_excl_accounting() argument 3155 btrfs_qgroup_free_refroot(struct btrfs_fs_info *fs_info, u64 ref_root, u64 num_bytes, enum btrfs_qgroup_rsv_type type) btrfs_qgroup_free_refroot() argument [all...] |
H A D | scrub.c | 740 u64 ref_root; in scrub_print_warning() local 773 item_size, &ref_root, in scrub_print_warning() 782 ret < 0 ? -1 : ref_root); in scrub_print_warning()
|
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | btrfs.h | 794 __field( u64, ref_root ) 805 __entry->ref_root = full_ref->root; 812 "parent=%llu(%s) ref_root=%llu(%s) level=%d " 818 show_root_type(__entry->ref_root), 857 __field( u64, ref_root ) 869 __entry->ref_root = full_ref->root; 877 "parent=%llu(%s) ref_root=%llu(%s) owner=%llu " 883 show_root_type(__entry->ref_root),
|
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | btrfs.h | 886 __field( u64, ref_root ) 897 __entry->ref_root = full_ref->root; 904 "parent=%llu(%s) ref_root=%llu(%s) level=%d " 910 show_root_type(__entry->ref_root), 949 __field( u64, ref_root ) 961 __entry->ref_root = full_ref->root; 969 "parent=%llu(%s) ref_root=%llu(%s) owner=%llu " 975 show_root_type(__entry->ref_root),
|