mm: concentrate modification of totalram_pages into the mm core