Lines Matching defs:dir
345 * @index: the dir index value to lookup (offset of a dir index key)
648 * that fit in a leaf. The delayed items (dir index keys) are sorted by their key
649 * in the rbtree, and if there's a gap between two consecutive dir index items,
650 * then it means at some point we had delayed dir indexes to add but they got
654 * fits within a gap between delayed dir index items.
804 * reserved leaves > 1 here - this happens when many dir index
1457 * Adding the new dir index item does not require touching another
1473 struct btrfs_inode *dir,
1486 delayed_node = btrfs_get_or_create_delayed_node(dir);
1523 "error adding delayed dir index item, name: %.*s, index: %llu, root: %llu, dir: %llu, dir->index_cnt: %llu, delayed_node->index_cnt: %llu, error: %d",
1525 delayed_node->inode_id, dir->index_cnt,
1545 * Space was reserved for a dir index item insertion when we
1592 * accumulate enough dir index items to fill more than one leaf (even
1604 /* If we now have no more dir index items, we can release all leaves. */
1615 struct btrfs_inode *dir, u64 index)
1621 node = btrfs_get_or_create_delayed_node(dir);
1644 "metadata reservation failed for delayed dir item deltiona, should have been reserved");
1653 "err add delayed dir index item(index: %llu) into the deletion tree of the delayed node(root id: %llu, inode id: %llu, errno: %d)",
1656 btrfs_delayed_item_release_metadata(dir->root, item);
1726 * Besides that, this function is used to read dir, we do not
1778 * Read dir info stored in the delayed tree.