Lines Matching refs:ref
352 struct btrfs_root_ref *ref; in btrfs_del_root_ref() local
371 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_del_root_ref()
373 ptr = (unsigned long)(ref + 1); in btrfs_del_root_ref()
374 if ((btrfs_root_ref_dirid(leaf, ref) != dirid) || in btrfs_del_root_ref()
375 (btrfs_root_ref_name_len(leaf, ref) != name_len) || in btrfs_del_root_ref()
380 *sequence = btrfs_root_ref_sequence(leaf, ref); in btrfs_del_root_ref()
426 struct btrfs_root_ref *ref; in btrfs_add_root_ref() local
439 sizeof(*ref) + name_len); in btrfs_add_root_ref()
447 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); in btrfs_add_root_ref()
448 btrfs_set_root_ref_dirid(leaf, ref, dirid); in btrfs_add_root_ref()
449 btrfs_set_root_ref_sequence(leaf, ref, sequence); in btrfs_add_root_ref()
450 btrfs_set_root_ref_name_len(leaf, ref, name_len); in btrfs_add_root_ref()
451 ptr = (unsigned long)(ref + 1); in btrfs_add_root_ref()