Lines Matching refs:newref
254 int newcount, const struct prelim_ref *newref) in update_share_count() argument
264 if (newref->root_id == btrfs_root_id(sc->root) && in update_share_count()
265 newref->wanted_disk_byte == sc->data_bytenr && in update_share_count()
266 newref->key_for_search.objectid == sc->inum) in update_share_count()
267 sc->self_ref_count += newref->count; in update_share_count()
277 struct prelim_ref *newref, in prelim_ref_insert() argument
293 result = prelim_ref_compare(ref, newref); in prelim_ref_insert()
307 ref->inode_list = newref->inode_list; in prelim_ref_insert()
309 eie->next = newref->inode_list; in prelim_ref_insert()
310 trace_btrfs_prelim_ref_merge(fs_info, ref, newref, in prelim_ref_insert()
318 ref->count + newref->count, newref); in prelim_ref_insert()
319 ref->count += newref->count; in prelim_ref_insert()
320 free_pref(newref); in prelim_ref_insert()
325 update_share_count(sc, 0, newref->count, newref); in prelim_ref_insert()
327 trace_btrfs_prelim_ref_insert(fs_info, newref, NULL, preftree->count); in prelim_ref_insert()
328 rb_link_node(&newref->rbnode, parent, p); in prelim_ref_insert()
329 rb_insert_color_cached(&newref->rbnode, root, leftmost); in prelim_ref_insert()