Lines Matching refs:ln
539 struct btree_node *ln, *rn, *pn; in btree_split_sibling() local
548 ln = dm_block_data(left); in btree_split_sibling()
551 nr_left = le32_to_cpu(ln->header.nr_entries) / 2; in btree_split_sibling()
552 nr_right = le32_to_cpu(ln->header.nr_entries) - nr_left; in btree_split_sibling()
554 ln->header.nr_entries = cpu_to_le32(nr_left); in btree_split_sibling()
556 rn->header.flags = ln->header.flags; in btree_split_sibling()
558 rn->header.max_entries = ln->header.max_entries; in btree_split_sibling()
559 rn->header.value_size = ln->header.value_size; in btree_split_sibling()
560 memcpy(rn->keys, ln->keys + nr_left, nr_right * sizeof(rn->keys[0])); in btree_split_sibling()
562 size = le32_to_cpu(ln->header.flags) & INTERNAL_NODE ? in btree_split_sibling()
564 memcpy(value_ptr(rn, 0), value_ptr(ln, nr_left), in btree_split_sibling()
626 struct btree_node *pn, *ln, *rn; in btree_split_beneath() local
640 ln = dm_block_data(left); in btree_split_beneath()
643 ln->header.flags = pn->header.flags; in btree_split_beneath()
644 ln->header.nr_entries = cpu_to_le32(nr_left); in btree_split_beneath()
645 ln->header.max_entries = pn->header.max_entries; in btree_split_beneath()
646 ln->header.value_size = pn->header.value_size; in btree_split_beneath()
647 memcpy(ln->keys, pn->keys, nr_left * sizeof(pn->keys[0])); in btree_split_beneath()
648 memcpy(value_ptr(ln, 0), value_ptr(pn, 0), nr_left * size); in btree_split_beneath()
679 pn->keys[0] = ln->keys[0]; in btree_split_beneath()