Lines Matching refs:ref
358 struct btrfs_root_ref *ref; in btrfs_del_root_ref() local
377 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_del_root_ref()
379 ptr = (unsigned long)(ref + 1); in btrfs_del_root_ref()
380 if ((btrfs_root_ref_dirid(leaf, ref) != dirid) || in btrfs_del_root_ref()
381 (btrfs_root_ref_name_len(leaf, ref) != name_len) || in btrfs_del_root_ref()
386 *sequence = btrfs_root_ref_sequence(leaf, ref); in btrfs_del_root_ref()
432 struct btrfs_root_ref *ref; in btrfs_add_root_ref() local
445 sizeof(*ref) + name_len); in btrfs_add_root_ref()
453 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); in btrfs_add_root_ref()
454 btrfs_set_root_ref_dirid(leaf, ref, dirid); in btrfs_add_root_ref()
455 btrfs_set_root_ref_sequence(leaf, ref, sequence); in btrfs_add_root_ref()
456 btrfs_set_root_ref_name_len(leaf, ref, name_len); in btrfs_add_root_ref()
457 ptr = (unsigned long)(ref + 1); in btrfs_add_root_ref()