Lines Matching defs:newref
257 int newcount, struct prelim_ref *newref)
267 if (newref->root_id == sc->root->root_key.objectid &&
268 newref->wanted_disk_byte == sc->data_bytenr &&
269 newref->key_for_search.objectid == sc->inum)
270 sc->self_ref_count += newref->count;
274 * Add @newref to the @root rbtree, merging identical refs.
276 * Callers should assume that newref has been freed after calling.
280 struct prelim_ref *newref,
296 result = prelim_ref_compare(ref, newref);
303 /* Identical refs, merge them and free @newref */
310 ref->inode_list = newref->inode_list;
312 eie->next = newref->inode_list;
313 trace_btrfs_prelim_ref_merge(fs_info, ref, newref,
316 * A delayed ref can have newref->count < 0.
321 ref->count + newref->count, newref);
322 ref->count += newref->count;
323 free_pref(newref);
328 update_share_count(sc, 0, newref->count, newref);
330 trace_btrfs_prelim_ref_insert(fs_info, newref, NULL, preftree->count);
331 rb_link_node(&newref->rbnode, parent, p);
332 rb_insert_color_cached(&newref->rbnode, root, leftmost);