Lines Matching refs:n_ondisk
37 struct btree_node *n_ondisk = c->verify_ondisk; in bch2_btree_verify_replica() local
60 memcpy(n_ondisk, n_sorted, btree_buf_bytes(b)); in bch2_btree_verify_replica()
87 i = &n_ondisk->keys; in bch2_btree_verify_replica()
88 sectors = vstruct_blocks(n_ondisk, c->block_bits) << in bch2_btree_verify_replica()
92 (void *) n_ondisk + (offset << 9); in bch2_btree_verify_replica()
185 struct btree_node *n_ondisk = NULL; in bch2_btree_node_ondisk_to_text() local
203 n_ondisk = kvmalloc(btree_buf_bytes(b), GFP_KERNEL); in bch2_btree_node_ondisk_to_text()
204 if (!n_ondisk) { in bch2_btree_node_ondisk_to_text()
210 buf_pages(n_ondisk, btree_buf_bytes(b)), in bch2_btree_node_ondisk_to_text()
215 bch2_bio_map(bio, n_ondisk, btree_buf_bytes(b)); in bch2_btree_node_ondisk_to_text()
231 i = &n_ondisk->keys; in bch2_btree_node_ondisk_to_text()
240 csum = csum_vstruct(c, BSET_CSUM_TYPE(i), nonce, n_ondisk); in bch2_btree_node_ondisk_to_text()
242 if (bch2_crc_cmp(csum, n_ondisk->csum)) { in bch2_btree_node_ondisk_to_text()
249 sectors = vstruct_sectors(n_ondisk, c->block_bits); in bch2_btree_node_ondisk_to_text()
251 struct btree_node_entry *bne = (void *) n_ondisk + (offset << 9); in bch2_btree_node_ondisk_to_text()
255 if (i->seq != n_ondisk->keys.seq) in bch2_btree_node_ondisk_to_text()
297 kvfree(n_ondisk); in bch2_btree_node_ondisk_to_text()