Lines Matching refs:ref
348 struct btrfs_root_ref *ref; in btrfs_del_root_ref() local
367 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_del_root_ref()
369 ptr = (unsigned long)(ref + 1); in btrfs_del_root_ref()
370 if ((btrfs_root_ref_dirid(leaf, ref) != dirid) || in btrfs_del_root_ref()
371 (btrfs_root_ref_name_len(leaf, ref) != name->len) || in btrfs_del_root_ref()
376 *sequence = btrfs_root_ref_sequence(leaf, ref); in btrfs_del_root_ref()
422 struct btrfs_root_ref *ref; in btrfs_add_root_ref() local
435 sizeof(*ref) + name->len); in btrfs_add_root_ref()
443 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); in btrfs_add_root_ref()
444 btrfs_set_root_ref_dirid(leaf, ref, dirid); in btrfs_add_root_ref()
445 btrfs_set_root_ref_sequence(leaf, ref, sequence); in btrfs_add_root_ref()
446 btrfs_set_root_ref_name_len(leaf, ref, name->len); in btrfs_add_root_ref()
447 ptr = (unsigned long)(ref + 1); in btrfs_add_root_ref()