Lines Matching refs:ref
312 struct btrfs_root_ref *ref; in btrfs_del_root_ref() local
331 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_del_root_ref()
334 WARN_ON(btrfs_root_ref_dirid(leaf, ref) != dirid); in btrfs_del_root_ref()
335 WARN_ON(btrfs_root_ref_name_len(leaf, ref) != name_len); in btrfs_del_root_ref()
336 ptr = (unsigned long)(ref + 1); in btrfs_del_root_ref()
338 *sequence = btrfs_root_ref_sequence(leaf, ref); in btrfs_del_root_ref()
399 struct btrfs_root_ref *ref; in btrfs_add_root_ref() local
412 sizeof(*ref) + name_len); in btrfs_add_root_ref()
420 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); in btrfs_add_root_ref()
421 btrfs_set_root_ref_dirid(leaf, ref, dirid); in btrfs_add_root_ref()
422 btrfs_set_root_ref_sequence(leaf, ref, sequence); in btrfs_add_root_ref()
423 btrfs_set_root_ref_name_len(leaf, ref, name_len); in btrfs_add_root_ref()
424 ptr = (unsigned long)(ref + 1); in btrfs_add_root_ref()