Fix calculation in move_freepages_block for counting pages