- Provide better code to calculate npages and rhpages.
- Put a comment explaining logic behind rhpages.

Sponsored by:	Netflix
Sponsored by:	Nginx, Inc.