Lines Matching refs:cursor1
41 struct hammer_cursor cursor1, cursor2; in hammer_ioc_dedup() local
57 error = hammer_init_cursor(trans, &cursor1, NULL, NULL); in hammer_ioc_dedup()
60 cursor1.key_beg = dedup->elm1; in hammer_ioc_dedup()
61 cursor1.flags |= HAMMER_CURSOR_BACKEND; in hammer_ioc_dedup()
63 error = hammer_btree_lookup(&cursor1); in hammer_ioc_dedup()
66 error = hammer_btree_extract_data(&cursor1); in hammer_ioc_dedup()
92 if (!hammer_is_zone_data(cursor1.leaf->data_offset) || in hammer_ioc_dedup()
106 if (HAMMER_ZONE(cursor1.leaf->data_offset) != in hammer_ioc_dedup()
111 if (cursor1.leaf->data_len != cursor2.leaf->data_len) { in hammer_ioc_dedup()
117 if (bcmp(cursor1.data, cursor2.data, cursor1.leaf->data_len)) { in hammer_ioc_dedup()
128 error = hammer_cursor_upgrade2(&cursor1, &cursor2); in hammer_ioc_dedup()
134 error = hammer_blockmap_dedup(cursor1.trans, in hammer_ioc_dedup()
135 cursor1.leaf->data_offset, cursor1.leaf->data_len); in hammer_ioc_dedup()
158 cursor2.leaf->data_offset = cursor1.leaf->data_offset; in hammer_ioc_dedup()
162 hammer_cursor_downgrade2(&cursor1, &cursor2); in hammer_ioc_dedup()
167 hammer_done_cursor(&cursor1); in hammer_ioc_dedup()