Lines Matching refs:ref
355 struct btrfs_root_ref *ref; in btrfs_del_root_ref() local
374 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_del_root_ref()
377 WARN_ON(btrfs_root_ref_dirid(leaf, ref) != dirid); in btrfs_del_root_ref()
378 WARN_ON(btrfs_root_ref_name_len(leaf, ref) != name_len); in btrfs_del_root_ref()
379 ptr = (unsigned long)(ref + 1); in btrfs_del_root_ref()
381 *sequence = btrfs_root_ref_sequence(leaf, ref); in btrfs_del_root_ref()
427 struct btrfs_root_ref *ref; in btrfs_add_root_ref() local
440 sizeof(*ref) + name_len); in btrfs_add_root_ref()
448 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); in btrfs_add_root_ref()
449 btrfs_set_root_ref_dirid(leaf, ref, dirid); in btrfs_add_root_ref()
450 btrfs_set_root_ref_sequence(leaf, ref, sequence); in btrfs_add_root_ref()
451 btrfs_set_root_ref_name_len(leaf, ref, name_len); in btrfs_add_root_ref()
452 ptr = (unsigned long)(ref + 1); in btrfs_add_root_ref()