Lines Matching refs:bn
740 struct btree_node *bn =
749 btree_err_on(bp->seq != bn->keys.seq,
756 btree_err_on(BTREE_NODE_ID(bn) != b->c.btree_id,
762 btree_err_on(BTREE_NODE_LEVEL(bn) != b->c.level,
770 BSET_BIG_ENDIAN(i), write, bn);
787 bch2_bpos_to_text(&buf1, bn->min_key), buf1.buf),
792 btree_err_on(!bpos_eq(bn->max_key, b->key.k.p),
798 bch2_bpos_to_text(&buf1, bn->max_key), buf1.buf));
802 BSET_BIG_ENDIAN(i), write, bn);
804 btree_err_on(bch2_bkey_format_invalid(c, &bn->format, write, &buf1),
810 bch2_bkey_format_to_text(&buf2, &bn->format), buf2.buf));
815 &bn->format);
1386 struct btree_node *bn = data;
1390 if (le64_to_cpu(bn->magic) != bset_magic(c))
1395 offset += vstruct_sectors(bn, c->block_bits);
1398 if (bne->keys.seq != bn->keys.seq)
1409 struct btree_node *bn = data;
1417 if (bne->keys.seq == bn->keys.seq)
1441 struct btree_node *bn = ra->buf[i];
1446 if (le64_to_cpu(bn->magic) != bset_magic(c) ||
1447 (seq && seq != bn->keys.seq))
1452 written = btree_node_sectors_written(c, bn);
1482 struct btree_node *bn = ra->buf[i];
1494 sectors = vstruct_sectors(bn, c->block_bits);
1497 if (bne->keys.seq != bn->keys.seq)
1511 if (bne->keys.seq == bn->keys.seq) {
1974 struct btree_node *bn = NULL;
2081 bn = data;
2082 *bn = *b->data;
2083 i = &bn->keys;
2148 if (bn)
2149 bn->csum = csum_vstruct(c, BSET_CSUM_TYPE(i), nonce, bn);