]> git.baikalelectronics.ru Git - kernel.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)
commit6b074fbb18198f7b6d9db09f521b0992e7874413
tree073e86ac8d8b3e392b0b87269546d7aa0eb10386
parenta420c0a3c9ca36cfe70910db565c1ce57d05337b
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