blob: af17e50edfb2efed2b02e6cfd0e69e9829286987 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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 <akpm@osdl.org>
# Signed-off-by: Linus Torvalds <torvalds@osdl.org>
#
# include/linux/mm.h
# 2004/10/28 00:56:39-07:00 jgarzik@pobox.com +2 -0
# add nth_page()
#
|