mm: use pgdat_end_pfn() to simplify the code in others