Lines Matching refs:nr_keep
463 int nr_keep = nr_move + (KEYS_PER_NODE & 1); in xfs_iext_split_node() local
476 new->keys[i] = node->keys[nr_keep + i]; in xfs_iext_split_node()
477 new->ptrs[i] = node->ptrs[nr_keep + i]; in xfs_iext_split_node()
479 node->keys[nr_keep + i] = XFS_IEXT_KEY_INVALID; in xfs_iext_split_node()
480 node->ptrs[nr_keep + i] = NULL; in xfs_iext_split_node()
483 if (*pos >= nr_keep) { in xfs_iext_split_node()
485 *pos -= nr_keep; in xfs_iext_split_node()
488 *nr_entries = nr_keep; in xfs_iext_split_node()
551 int nr_keep = nr_move + (RECS_PER_LEAF & 1); in xfs_iext_split_leaf() local
563 new->recs[i] = leaf->recs[nr_keep + i]; in xfs_iext_split_leaf()
564 xfs_iext_rec_clear(&leaf->recs[nr_keep + i]); in xfs_iext_split_leaf()
567 if (cur->pos >= nr_keep) { in xfs_iext_split_leaf()
569 cur->pos -= nr_keep; in xfs_iext_split_leaf()
572 *nr_entries = nr_keep; in xfs_iext_split_leaf()