diff -Naru a/include/linux/mm.h b/include/linux/mm.h --- a/include/linux/mm.h 2005-10-20 02:28:22 -07:00 +++ b/include/linux/mm.h 2005-10-20 02:28:22 -07:00 @@ -41,6 +41,8 @@ #define MM_VM_SIZE(mm) TASK_SIZE #endif +#define nth_page(page,n) (pfn_to_page(page_to_pfn((page)) + n)) + /* * Linux kernel virtual memory manager primitives. * The idea being to have a "virtual" mm in the same way # This is a BitKeeper generated diff -Nru style patch. # # ChangeSet # 2004/10/28 08:18:25-07:00 jgarzik@pobox.com # [PATCH] add nth_page() # # Provide a function to get the pageframe number of the nth page at # scatterlist.page. We cannot just index off scatterlist.page because the # physically-contiguous pages may not be contiguous in mem_map[]. # # Signed-off-by: Andrew Morton # Signed-off-by: Linus Torvalds # # include/linux/mm.h # 2004/10/28 00:56:39-07:00 jgarzik@pobox.com +2 -0 # add nth_page() #