fork: use vma_pages() to simplify the code