mm: move p?d_alloc_track to separate header file

The functions are only used in two source files, so there is no need for
them to be in the global <linux/mm.h> header.  Move them to the new
<linux/pgalloc-track.h> header and include it only where needed.

Signed-off-by: Joerg Roedel <>
Signed-off-by: Andrew Morton <>
Reviewed-by: Pekka Enberg <>
Cc: Peter Zijlstra (Intel) <>
Cc: Andy Lutomirski <>
Cc: Abdul Haleem <>
Cc: Satheesh Rajendran <>
Cc: Stephen Rothwell <>
Cc: Steven Rostedt (VMware) <>
Cc: Mike Rapoport <>
Cc: Christophe Leroy <>
Cc: Arnd Bergmann <>
Cc: Max Filippov <>
Cc: Stafford Horne <>
Cc: Geert Uytterhoeven <>
Cc: Matthew Wilcox <>
Signed-off-by: Linus Torvalds <>
4 files changed