]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix CMM page loaning on 64k page kernel with 4k hardware pages
authorBrian King <brking@linux.vnet.ibm.com>
Fri, 15 Aug 2008 19:09:33 +0000 (05:09 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 18 Aug 2008 04:22:35 +0000 (14:22 +1000)
commit2c3259bb7e36e52af77954b37aaae0e9a5277e3b
treef56502407decd8e833b6e7cb50b51b3d51ce6150
parentb2a9e99fa15ca29b0679de372a0450c9bb94cd02
powerpc: Fix CMM page loaning on 64k page kernel with 4k hardware pages

If the firmware page size used for collaborative memory overcommit
is 4k, but the kernel is using 64k pages, the page loaning is currently
broken as it only marks the first 4k page of each 64k page as loaned.
This fixes this to iterate through each 4k page and mark them all as
loaned/active.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/plpar_wrappers.h