[PATCH] avoid allocating pte_chains for unshared pages
authorAndrew Morton <akpm@zip.com.au>
Fri, 19 Jul 2002 04:09:02 +0000 (21:09 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 19 Jul 2002 04:09:02 +0000 (21:09 -0700)
commit6a2ea3382b534e937ba2153f4a0c6021e04a1ef5
treeee967db238da26f5335651871b04ff1b3a75594e
parentfa08cc8377bf0942822c468cf26581012e69c9c9
[PATCH] avoid allocating pte_chains for unshared pages

Patch from David McCracken.  It is an optimisation to the rmap
pte_chains.

In the common case where a page is mapped by only a single pte, we
don't need to allocate a pte_chain structure.  Just make the page's
pte_chain pointer point straight at that pte and flag this with
PG_direct.
include/linux/mm.h
include/linux/page-flags.h
mm/page_alloc.c
mm/rmap.c
mm/vmscan.c