Re: [patch 1/3] mm: introduce follow_pte()

2009-05-05 Thread Johannes Weiner
On Tue, May 05, 2009 at 12:24:42PM -0700, Andrew Morton wrote: On Mon, 4 May 2009 11:54:32 +0200 Johannes Weiner han...@cmpxchg.org wrote: A generic readonly page table lookup helper to map an address space and an address from it to a pte. umm, OK. Is there actually some point

Re: [patch 1/3] mm: introduce follow_pte()

2009-05-05 Thread Johannes Weiner
On Tue, May 05, 2009 at 02:05:17PM -0700, Andrew Morton wrote: On Tue, 5 May 2009 22:38:07 +0200 Johannes Weiner han...@cmpxchg.org wrote: On Tue, May 05, 2009 at 12:24:42PM -0700, Andrew Morton wrote: On Mon, 4 May 2009 11:54:32 +0200 Johannes Weiner han...@cmpxchg.org wrote

Re: [patch 2/3] mm: use generic follow_pte() in follow_phys()

2009-05-04 Thread Johannes Weiner
On Mon, May 04, 2009 at 11:54:33AM +0200, Johannes Weiner wrote: Signed-off-by: Johannes Weiner han...@cmpxchg.org --- mm/memory.c | 37 ++--- 1 files changed, 6 insertions(+), 31 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index a621319..aee167d

[patch 3/3 v2] mm: introduce follow_pfn()

2009-05-04 Thread Johannes Weiner
Analoguous to follow_phys(), add a helper that looks up the PFN at a user virtual address in an IO mapping or a raw PFN mapping. Signed-off-by: Johannes Weiner han...@cmpxchg.org --- include/linux/mm.h |2 ++ mm/memory.c| 29 + 2 files changed, 31