Lines Matching +full:cache +full:- +full:block
1 /* SPDX-License-Identifier: GPL-2.0 */
17 #include "disk-io.h"
30 * The value must be non-negative and must not be 0, 1 (which is a common return
39 * continue. Can return BTRFS_ITERATE_EXTENT_INODES_STOP or any other non-zero
94 * commit roots when searching b+trees - this is a special case for
112 * cache which maps the logical address (bytenr) of leaves to an array
187 * Cache the sharedness result for the last few extents we have found,
195 * So keep a small cache with the lookup results for the extent pointed
196 * by the last few file extent items. This cache is checked, with a
272 * Now it only supports iteration of tree block in commit root.
287 * For metadata with EXTENT_ITEM key (non-skinny) case, the first inline data
295 if (iter->cur_key.type == BTRFS_EXTENT_ITEM_KEY && in btrfs_backref_has_tree_block_info()
296 iter->cur_ptr - iter->item_ptr == sizeof(struct btrfs_extent_item)) in btrfs_backref_has_tree_block_info()
306 * Backref cache related structures
308 * The whole objective of backref_cache is to build a bi-directional map
313 * Represent a tree block in the backref cache
322 * This is a sanity check, whenever we COW a block we will update
324 * various places to validate that the cache makes sense, it shouldn't
328 /* Objectid of tree block owner, can be not uptodate */
340 /* Extent buffer got by COWing the block */
342 /* Level of the tree block */
346 /* Has the block been processed */
348 /* Have backrefs of this block been checked */
351 * 1 if corresponding block has been COWed but some upper level block
359 * For generic purpose backref cache, where we only care if it's a reloc
387 /* Red black tree of all backref nodes in the cache */
392 * List of blocks that have been COWed but some block pointers in upper
402 /* List of unchecked backref edges during backref cache build */
405 /* List of useless backref nodes during backref cache build */
411 * Whether this cache is for relocation
413 * Reloction backref cache require more info for reloc root compared
414 * to generic backref cache.
420 struct btrfs_backref_cache *cache, bool is_reloc);
422 struct btrfs_backref_cache *cache, u64 bytenr, int level);
424 struct btrfs_backref_cache *cache);
433 void btrfs_backref_free_node(struct btrfs_backref_cache *cache,
435 void btrfs_backref_free_edge(struct btrfs_backref_cache *cache,
440 void btrfs_backref_cleanup_node(struct btrfs_backref_cache *cache,
445 void btrfs_backref_release_cache(struct btrfs_backref_cache *cache);
451 "Inconsistency in backref cache found at offset %llu", in btrfs_backref_panic()
456 struct btrfs_backref_cache *cache,
462 int btrfs_backref_finish_upper_links(struct btrfs_backref_cache *cache,
465 void btrfs_backref_error_cleanup(struct btrfs_backref_cache *cache,