Lines Matching refs:nr_keep
459 int nr_keep = nr_move + (KEYS_PER_NODE & 1); in xfs_iext_split_node() local
472 new->keys[i] = node->keys[nr_keep + i]; in xfs_iext_split_node()
473 new->ptrs[i] = node->ptrs[nr_keep + i]; in xfs_iext_split_node()
475 node->keys[nr_keep + i] = XFS_IEXT_KEY_INVALID; in xfs_iext_split_node()
476 node->ptrs[nr_keep + i] = NULL; in xfs_iext_split_node()
479 if (*pos >= nr_keep) { in xfs_iext_split_node()
481 *pos -= nr_keep; in xfs_iext_split_node()
484 *nr_entries = nr_keep; in xfs_iext_split_node()
547 int nr_keep = nr_move + (RECS_PER_LEAF & 1); in xfs_iext_split_leaf() local
559 new->recs[i] = leaf->recs[nr_keep + i]; in xfs_iext_split_leaf()
560 xfs_iext_rec_clear(&leaf->recs[nr_keep + i]); in xfs_iext_split_leaf()
563 if (cur->pos >= nr_keep) { in xfs_iext_split_leaf()
565 cur->pos -= nr_keep; in xfs_iext_split_leaf()
568 *nr_entries = nr_keep; in xfs_iext_split_leaf()