Push the btree overflow check into the inlined function.