Commit bb16e97d authored by Jeff Garzik's avatar Jeff Garzik Committed by Linus Torvalds

[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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 41b9c68d
......@@ -41,6 +41,8 @@ extern int sysctl_legacy_va_layout;
#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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment