]> git.neil.brown.name Git - history.git/commit
[PATCH] use page_to_pfn() instead of mem_map[]
authorAndrew Morton <akpm@zip.com.au>
Tue, 3 Sep 2002 12:34:12 +0000 (05:34 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 3 Sep 2002 12:34:12 +0000 (05:34 -0700)
commit27254059c0a4af49dc40639861e06841d65464d0
tree18bc843059b5b678a9451a306d94557e860f6cc7
parent0d0bdc8e6f1cbfddd68f9912666251396ee47142
[PATCH] use page_to_pfn() instead of mem_map[]

A patch from Martin Bligh which cleans up the open-coded uses of
mem_map for ia32.  Basically it replaces

mem_map + pagenr

with

pfn_to_page(pagenr)

in lots of places.  Because mem_map[] doesn't work like that with
discontigmem.

It also fixes a bug in bad_range, that happens to work for contig mem
systems, but is incorrect.  Tested both with and without discontigmem
support.
arch/i386/mm/init.c
arch/i386/mm/pgtable.c
drivers/net/ns83820.c
include/asm-i386/io.h
include/asm-i386/pci.h
include/asm-i386/pgalloc.h
include/asm-i386/pgtable.h
kernel/suspend.c
mm/page_alloc.c