Lines Matching defs:ref
340 struct btrfs_root_ref *ref;
359 ref = btrfs_item_ptr(leaf, path->slots[0],
361 ptr = (unsigned long)(ref + 1);
362 if ((btrfs_root_ref_dirid(leaf, ref) != dirid) ||
363 (btrfs_root_ref_name_len(leaf, ref) != name->len) ||
368 *sequence = btrfs_root_ref_sequence(leaf, ref);
398 * For a forward ref, the root_id is the id of the tree referencing
401 * For a back ref the root_id is the id of the subvol or snapshot and
414 struct btrfs_root_ref *ref;
427 sizeof(*ref) + name->len);
435 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref);
436 btrfs_set_root_ref_dirid(leaf, ref, dirid);
437 btrfs_set_root_ref_sequence(leaf, ref, sequence);
438 btrfs_set_root_ref_name_len(leaf, ref, name->len);
439 ptr = (unsigned long)(ref + 1);