Lines Matching refs:ref
364 struct btrfs_root_ref *ref; in btrfs_del_root_ref() local
383 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_del_root_ref()
386 WARN_ON(btrfs_root_ref_dirid(leaf, ref) != dirid); in btrfs_del_root_ref()
387 WARN_ON(btrfs_root_ref_name_len(leaf, ref) != name_len); in btrfs_del_root_ref()
388 ptr = (unsigned long)(ref + 1); in btrfs_del_root_ref()
390 *sequence = btrfs_root_ref_sequence(leaf, ref); in btrfs_del_root_ref()
436 struct btrfs_root_ref *ref; in btrfs_add_root_ref() local
449 sizeof(*ref) + name_len); in btrfs_add_root_ref()
457 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); in btrfs_add_root_ref()
458 btrfs_set_root_ref_dirid(leaf, ref, dirid); in btrfs_add_root_ref()
459 btrfs_set_root_ref_sequence(leaf, ref, sequence); in btrfs_add_root_ref()
460 btrfs_set_root_ref_name_len(leaf, ref, name_len); in btrfs_add_root_ref()
461 ptr = (unsigned long)(ref + 1); in btrfs_add_root_ref()