/linux/fs/btrfs/ |
H A D | zlib.c | 125 ret, btrfs_root_id(inode->root), btrfs_ino(inode), start); in zlib_compress_folios() 209 ret, btrfs_root_id(inode->root), btrfs_ino(inode), in zlib_compress_folios() 340 ret, btrfs_root_id(inode->root), btrfs_ino(inode), cb->start); in zlib_decompress_bio() 382 ret, btrfs_root_id(cb->bbio.inode->root), in zlib_decompress_bio() 428 ret, btrfs_root_id(inode->root), btrfs_ino(inode), in zlib_decompress() 450 ret, btrfs_root_id(inode->root), btrfs_ino(inode), in zlib_decompress()
|
H A D | export.c | 37 fid->root_objectid = btrfs_root_id(BTRFS_I(inode)->root); in btrfs_encode_fh() 45 parent_root_id = btrfs_root_id(BTRFS_I(parent)->root); in btrfs_encode_fh() 163 key.objectid = btrfs_root_id(root); in btrfs_get_parent() 246 key.objectid = btrfs_root_id(BTRFS_I(inode)->root); in btrfs_get_name()
|
H A D | block-rsv.c | 344 if (btrfs_root_id(root) == BTRFS_EXTENT_TREE_OBJECTID || in btrfs_update_global_block_rsv() 345 btrfs_root_id(root) == BTRFS_CSUM_TREE_OBJECTID || in btrfs_update_global_block_rsv() 346 btrfs_root_id(root) == BTRFS_FREE_SPACE_TREE_OBJECTID) { in btrfs_update_global_block_rsv() 409 switch (btrfs_root_id(root)) { in btrfs_init_root_block_rsv() 471 (trans->adding_csums && btrfs_root_id(root) == BTRFS_CSUM_TREE_OBJECTID)) in get_block_rsv()
|
H A D | zstd.c | 411 workspace->req_level, btrfs_root_id(inode->root), in zstd_compress_folios() 449 btrfs_root_id(inode->root), btrfs_ino(inode), in zstd_compress_folios() 524 btrfs_root_id(inode->root), btrfs_ino(inode), in zstd_compress_folios() 592 btrfs_root_id(inode->root), btrfs_ino(inode), cb->start); in zstd_decompress_bio() 615 zstd_get_error_code(ret2), btrfs_root_id(inode->root), in zstd_decompress_bio() 676 btrfs_root_id(inode->root), btrfs_ino(inode), in zstd_decompress() 700 zstd_get_error_code(ret), btrfs_root_id(inode->root), in zstd_decompress()
|
H A D | lzo.c | 363 btrfs_root_id(inode->root), btrfs_ino(inode), in lzo_decompress_bio() 398 btrfs_root_id(inode->root), btrfs_ino(inode), in lzo_decompress_bio() 414 ret, btrfs_root_id(inode->root), btrfs_ino(inode), in lzo_decompress_bio() 474 ret, btrfs_root_id(inode->root), btrfs_ino(inode), in lzo_decompress()
|
H A D | ctree.c | 294 if (btrfs_root_id(root) == BTRFS_EXTENT_TREE_OBJECTID) in add_root_to_dirty_list() 449 btrfs_root_id(root)); in update_ref_for_cow() 456 if (btrfs_root_id(root) == BTRFS_TREE_RELOC_OBJECTID || in update_ref_for_cow() 469 btrfs_root_id(root), refs, flags); in update_ref_for_cow() 476 if ((owner == btrfs_root_id(root) || in update_ref_for_cow() 477 btrfs_root_id(root) == BTRFS_TREE_RELOC_OBJECTID) && in update_ref_for_cow() 483 if (btrfs_root_id(root) == BTRFS_TREE_RELOC_OBJECTID) { in update_ref_for_cow() 497 if (btrfs_root_id(root) == BTRFS_TREE_RELOC_OBJECTID) in update_ref_for_cow() 506 if (btrfs_root_id(root) == BTRFS_TREE_RELOC_OBJECTID) in update_ref_for_cow() 568 if (btrfs_root_id(root) == BTRFS_TREE_RELOC_OBJECTID) { in btrfs_force_cow_block() [all …]
|
H A D | extent_map.c | 84 if (!btrfs_is_testing(fs_info) && is_fstree(btrfs_root_id(inode->root))) in dec_evictable_extent_maps() 427 btrfs_ino(inode), btrfs_root_id(inode->root), in unpin_extent_cache() 436 btrfs_ino(inode), btrfs_root_id(inode->root), in unpin_extent_cache() 507 if (!btrfs_is_testing(fs_info) && is_fstree(btrfs_root_id(root))) in add_extent_mapping() 1244 ctx->last_root = btrfs_root_id(root); in btrfs_scan_root() 1251 ctx->last_root = btrfs_root_id(root) + 1; in btrfs_scan_root() 1310 next_root_id = btrfs_root_id(root) + 1; in btrfs_free_extent_maps() 1317 if (is_fstree(btrfs_root_id(root))) in btrfs_free_extent_maps()
|
H A D | transaction.c | 428 (unsigned long)btrfs_root_id(root), in record_root_in_trans() 474 (unsigned long)btrfs_root_id(root), in btrfs_add_dropped_root() 552 btrfs_root_id(root) == BTRFS_TREE_RELOC_OBJECTID || in need_reserve_reloc_root() 1227 ASSERT(btrfs_root_id(log_root) == BTRFS_TREE_LOG_OBJECTID); in btrfs_wait_tree_log_extents() 1490 (unsigned long)btrfs_root_id(root), in commit_fs_roots() 1581 ret = btrfs_qgroup_inherit(trans, btrfs_root_id(src), dst_objectid, in qgroup_account_snapshot() 1582 btrfs_root_id(parent), inherit); in qgroup_account_snapshot() 1820 btrfs_root_id(parent_root), in create_pending_snapshot() 1853 ret = btrfs_qgroup_inherit(trans, btrfs_root_id(root), objectid, in create_pending_snapshot() 1854 btrfs_root_id(parent_root), pending->inherit); in create_pending_snapshot() [all …]
|
H A D | extent-tree.c | 2333 if (ref->ref_root != btrfs_root_id(root) || in check_delayed_ref() 2427 btrfs_extent_data_ref_root(leaf, ref) != btrfs_root_id(root) || in check_committed_ref() 2519 btrfs_root_id(root), for_reloc); in __btrfs_mod_ref() 2532 btrfs_root_id(root), for_reloc); in __btrfs_mod_ref() 4678 bool for_treelog = (btrfs_root_id(root) == BTRFS_TREE_LOG_OBJECTID); in btrfs_reserve_extent() 4943 .owning_root = btrfs_root_id(root), in btrfs_alloc_reserved_file_extent() 4944 .ref_root = btrfs_root_id(root), in btrfs_alloc_reserved_file_extent() 5090 if (btrfs_root_id(root) == BTRFS_TREE_LOG_OBJECTID) { in btrfs_init_new_buffer() 5199 btrfs_init_tree_ref(&generic_ref, level, btrfs_root_id(root), false); in btrfs_alloc_tree_block() 5415 if (wc->stage == UPDATE_BACKREF && btrfs_header_owner(eb) != btrfs_root_id(root)) in walk_down_proc() [all …]
|
H A D | disk-io.c | 777 btrfs_root_id(root), root->root_key.offset); in btrfs_global_root_insert() 1006 log_root->root_key.offset = btrfs_root_id(root); in btrfs_add_log_tree() 1071 btrfs_root_id(root) != BTRFS_TREE_LOG_OBJECTID && in read_tree_root_path() 1072 btrfs_root_id(root) != BTRFS_TREE_RELOC_OBJECTID && in read_tree_root_path() 1073 btrfs_root_id(root) != btrfs_header_owner(root->node)) { in read_tree_root_path() 1076 btrfs_root_id(root), root->node->start, in read_tree_root_path() 1078 btrfs_root_id(root)); in read_tree_root_path() 1115 if (btrfs_root_id(root) != BTRFS_TREE_LOG_OBJECTID && in btrfs_init_fs_root() 1117 is_fstree(btrfs_root_id(root))) { in btrfs_init_fs_root() 1126 if (is_fstree(btrfs_root_id(root)) && in btrfs_init_fs_root() [all …]
|
H A D | file-item.c | 434 if (btrfs_root_id(inode->root) == BTRFS_DATA_RELOC_TREE_OBJECTID) { in btrfs_lookup_bio_sums() 888 ASSERT(btrfs_root_id(root) == BTRFS_CSUM_TREE_OBJECTID || in btrfs_del_csums() 889 btrfs_root_id(root) == BTRFS_TREE_LOG_OBJECTID); in btrfs_del_csums() 1189 if (btrfs_root_id(root) == BTRFS_TREE_LOG_OBJECTID) { in btrfs_csum_file_blocks() 1332 btrfs_root_id(root)); in btrfs_extent_item_to_extent_map()
|
H A D | qgroup.c | 1434 ret = btrfs_free_tree_block(trans, btrfs_root_id(quota_root), in btrfs_quota_disable() 3600 u64 ref_root = btrfs_root_id(root); in qgroup_reserve() 4225 !is_fstree(btrfs_root_id(root)) || len == 0) in qgroup_reserve_data() 4341 btrfs_qgroup_free_refroot(root->fs_info, btrfs_root_id(root), freed, in qgroup_free_reserved_data() 4381 btrfs_root_id(inode->root), in __btrfs_qgroup_release_data() 4476 !is_fstree(btrfs_root_id(root)) || num_bytes == 0) in btrfs_qgroup_reserve_meta() 4521 !is_fstree(btrfs_root_id(root))) in btrfs_qgroup_free_meta_all_pertrans() 4527 btrfs_qgroup_free_refroot(fs_info, btrfs_root_id(root), (u64)-1, in btrfs_qgroup_free_meta_all_pertrans() 4537 !is_fstree(btrfs_root_id(root))) in __btrfs_qgroup_free_meta() 4548 btrfs_qgroup_free_refroot(fs_info, btrfs_root_id(root), num_bytes, type); in __btrfs_qgroup_free_meta() [all …]
|
H A D | file.c | 248 update_refs = (btrfs_root_id(root) != BTRFS_TREE_LOG_OBJECTID); in btrfs_drop_extents() 380 .owning_root = btrfs_root_id(root), in btrfs_drop_extents() 381 .ref_root = btrfs_root_id(root), in btrfs_drop_extents() 473 .owning_root = btrfs_root_id(root), in btrfs_drop_extents() 474 .ref_root = btrfs_root_id(root), in btrfs_drop_extents() 758 ref.owning_root = btrfs_root_id(root); in btrfs_mark_extent_written() 759 ref.ref_root = btrfs_root_id(root); in btrfs_mark_extent_written() 788 ref.owning_root = btrfs_root_id(root); in btrfs_mark_extent_written() 789 ref.ref_root = btrfs_root_id(root); in btrfs_mark_extent_written() 2335 .owning_root = btrfs_root_id(root), in btrfs_insert_replace_extent() [all …]
|
H A D | locking.c | 100 btrfs_set_buffer_lockdep_class(btrfs_root_id(root), in btrfs_maybe_reset_lockdep_class()
|
H A D | send.c | 397 btrfs_root_id(sctx->send_root), in inconsistent_snapshot_error() 398 (sctx->parent_root ? btrfs_root_id(sctx->parent_root) : 0)); in inconsistent_snapshot_error() 1320 if (root < btrfs_root_id(cr->root)) in __clone_root_cmp_bsearch() 1322 if (root > btrfs_root_id(cr->root)) in __clone_root_cmp_bsearch() 1332 if (btrfs_root_id(cr1->root) < btrfs_root_id(cr2->root)) in __clone_root_cmp_sort() 1334 if (btrfs_root_id(cr1->root) > btrfs_root_id(cr2->root)) in __clone_root_cmp_sort() 1782 ino, btrfs_root_id(root)); in read_symlink() 1794 ino, btrfs_root_id(root), type); in read_symlink() 1802 ino, btrfs_root_id(root), compression); in read_symlink() 2536 key.objectid = btrfs_root_id(send_root); in send_subvol_begin() [all …]
|
H A D | inode-item.c | 677 .owning_root = btrfs_root_id(root), in btrfs_truncate_inode_items() 684 btrfs_root_id(root), false); in btrfs_truncate_inode_items()
|
H A D | ioctl.c | 664 ret = btrfs_qgroup_inherit(trans, 0, objectid, btrfs_root_id(root), inherit); in create_subvol() 1512 btrfs_root_id(root)); in btrfs_ioctl_subvol_setflags() 1920 u64 treeid = btrfs_root_id(BTRFS_I(inode)->root); in btrfs_search_path_in_tree_user() 2092 args->treeid = btrfs_root_id(root); in btrfs_ioctl_ino_lookup() 2188 key.objectid = btrfs_root_id(BTRFS_I(inode)->root); in btrfs_ioctl_get_subvol_info() 2303 objectid = btrfs_root_id(root); in btrfs_ioctl_get_subvol_rootref() 2982 if (!is_fstree(btrfs_root_id(new_root))) { in btrfs_ioctl_default_subvol() 3989 qgroupid = btrfs_root_id(root); in btrfs_ioctl_qgroup_limit() 4123 btrfs_root_id(root)); in _btrfs_ioctl_set_received_subvol() 4147 btrfs_root_id(root)); in _btrfs_ioctl_set_received_subvol()
|
H A D | props.c | 271 btrfs_root_id(root), ret); in inode_prop_iterator()
|
H A D | root-tree.c | 151 key->objectid, key->type, key->offset, btrfs_root_id(root)); in btrfs_update_root()
|
H A D | ctree.h | 338 static inline u64 btrfs_root_id(const struct btrfs_root *root) in btrfs_root_id() function
|
H A D | defrag.c | 142 defrag->root = btrfs_root_id(root); in btrfs_add_inode_defrag() 371 parent->start, btrfs_root_id(root), trans->transid, in btrfs_realloc_node()
|
H A D | reflink.c | 669 btrfs_root_id(root_dst), in btrfs_extent_same()
|
H A D | delayed-inode.c | 1522 name_len, name, index, btrfs_root_id(delayed_node->root), in btrfs_insert_delayed_dir_index() 1652 index, btrfs_root_id(node->root), in btrfs_delete_delayed_dir_index()
|
H A D | tree-mod-log.c | 1007 check.owner_root = btrfs_root_id(root); in btrfs_get_old_root()
|
H A D | tree-log.c | 413 ASSERT(btrfs_root_id(root) != BTRFS_TREE_LOG_OBJECTID); in overwrite_item() 787 .owning_root = btrfs_root_id(root), in replay_one_extent() 788 .ref_root = btrfs_root_id(root), in replay_one_extent() 801 btrfs_root_id(root), in replay_one_extent() 3070 btrfs_root_id(root), ret); in btrfs_sync_log()
|