Lines Matching defs:ref
350 struct btrfs_root_ref *ref;
369 ref = btrfs_item_ptr(leaf, path->slots[0],
371 ptr = (unsigned long)(ref + 1);
372 if ((btrfs_root_ref_dirid(leaf, ref) != dirid) ||
373 (btrfs_root_ref_name_len(leaf, ref) != name->len) ||
378 *sequence = btrfs_root_ref_sequence(leaf, ref);
408 * For a forward ref, the root_id is the id of the tree referencing
411 * For a back ref the root_id is the id of the subvol or snapshot and
424 struct btrfs_root_ref *ref;
437 sizeof(*ref) + name->len);
445 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref);
446 btrfs_set_root_ref_dirid(leaf, ref, dirid);
447 btrfs_set_root_ref_sequence(leaf, ref, sequence);
448 btrfs_set_root_ref_name_len(leaf, ref, name->len);
449 ptr = (unsigned long)(ref + 1);