Lines Matching refs:fs_info

308 static int __resolve_indirect_ref(struct btrfs_fs_info *fs_info,  in __resolve_indirect_ref()  argument
326 index = srcu_read_lock(&fs_info->subvol_srcu); in __resolve_indirect_ref()
328 root = btrfs_read_fs_root_no_name(fs_info, &root_key); in __resolve_indirect_ref()
330 srcu_read_unlock(&fs_info->subvol_srcu, index); in __resolve_indirect_ref()
341 srcu_read_unlock(&fs_info->subvol_srcu, index); in __resolve_indirect_ref()
349 srcu_read_unlock(&fs_info->subvol_srcu, index); in __resolve_indirect_ref()
380 static int __resolve_indirect_refs(struct btrfs_fs_info *fs_info, in __resolve_indirect_refs() argument
413 err = __resolve_indirect_ref(fs_info, path, time_seq, ref, in __resolve_indirect_refs()
477 static int __add_missing_keys(struct btrfs_fs_info *fs_info, in __add_missing_keys() argument
492 eb = read_tree_block(fs_info->tree_root, ref->wanted_disk_byte, in __add_missing_keys()
678 static int __add_inline_refs(struct btrfs_fs_info *fs_info, in __add_inline_refs() argument
791 static int __add_keyed_refs(struct btrfs_fs_info *fs_info, in __add_keyed_refs() argument
795 struct btrfs_root *extent_root = fs_info->extent_root; in __add_keyed_refs()
888 struct btrfs_fs_info *fs_info, u64 bytenr, argument
910 if (btrfs_fs_incompat(fs_info, SKINNY_METADATA))
931 ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 0);
987 ret = __add_inline_refs(fs_info, path, bytenr,
992 ret = __add_keyed_refs(fs_info, path, bytenr,
1002 ret = __add_missing_keys(fs_info, &prefs);
1008 ret = __resolve_indirect_refs(fs_info, path, time_seq, &prefs,
1035 eb = read_tree_block(fs_info->extent_root,
1118 struct btrfs_fs_info *fs_info, u64 bytenr, argument
1128 ret = find_parent_nodes(trans, fs_info, bytenr,
1152 struct btrfs_fs_info *fs_info, u64 bytenr, argument
1171 ret = find_parent_nodes(trans, fs_info, bytenr,
1190 struct btrfs_fs_info *fs_info, u64 bytenr, argument
1196 down_read(&fs_info->commit_root_sem);
1197 ret = __btrfs_find_all_roots(trans, fs_info, bytenr, time_seq, roots);
1199 up_read(&fs_info->commit_root_sem);
1217 struct btrfs_fs_info *fs_info, u64 root_objectid, argument
1236 btrfs_get_tree_mod_seq(fs_info, &elem);
1238 down_read(&fs_info->commit_root_sem);
1241 ret = find_parent_nodes(trans, fs_info, bytenr, elem.seq, tmp,
1258 btrfs_put_tree_mod_seq(fs_info, &elem);
1260 up_read(&fs_info->commit_root_sem);
1424 int extent_from_logical(struct btrfs_fs_info *fs_info, u64 logical, argument
1436 if (btrfs_fs_incompat(fs_info, SKINNY_METADATA))
1443 ret = btrfs_search_slot(NULL, fs_info->extent_root, &key, path, 0, 0);
1447 ret = btrfs_previous_extent_item(fs_info->extent_root, path, 0);
1455 size = fs_info->extent_root->nodesize;
1621 int iterate_extent_inodes(struct btrfs_fs_info *fs_info, argument
1640 trans = btrfs_join_transaction(fs_info->extent_root);
1643 btrfs_get_tree_mod_seq(fs_info, &tree_mod_seq_elem);
1645 down_read(&fs_info->commit_root_sem);
1648 ret = btrfs_find_all_leafs(trans, fs_info, extent_item_objectid,
1656 ret = __btrfs_find_all_roots(trans, fs_info, ref_node->val,
1677 btrfs_put_tree_mod_seq(fs_info, &tree_mod_seq_elem);
1678 btrfs_end_transaction(trans, fs_info->extent_root);
1680 up_read(&fs_info->commit_root_sem);
1686 int iterate_inodes_from_logical(u64 logical, struct btrfs_fs_info *fs_info, argument
1696 ret = extent_from_logical(fs_info, logical, path, &found_key, &flags);
1704 ret = iterate_extent_inodes(fs_info, found_key.objectid,