]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86: CPA: avoid split of alias mappings
authorThomas Gleixner <tglx@linutronix.de>
Sat, 23 Feb 2008 19:43:21 +0000 (20:43 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 29 Feb 2008 17:55:42 +0000 (18:55 +0100)
commit8be8f54bae3453588011cad06363813a5293af53
tree073e86ac8d8b3e392b0b87269546d7aa0eb10386
parent757265b8c57bb8fd91785d3d1a87fb483c86c9c2
x86: CPA: avoid split of alias mappings

avoid over-eager large page splitup.

When the target area needs to be split or is split already (ioremap)
then the current code enforces the split of large mappings in the alias
regions even if we could avoid it.

Use a separate variable processed in the cpa_data structure to carry
the number of pages which have been processed instead of reusing the
numpages variable. This keeps numpages intact and gives the alias code
a chance to keep large mappings intact.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pageattr.c