]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mm: fix pmd_pfn() for thp
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Wed, 9 Jan 2013 17:49:51 +0000 (18:49 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sat, 12 Jan 2013 17:49:25 +0000 (18:49 +0100)
commitcbf8389d8b75ff16b1a18fa50ad227ae4136f7ec
tree84ea088530fdda5322b144ccfbf32b9502fcf737
parentde6f79e591f3b4e331504d1e935e4e9123ff77c7
s390/mm: fix pmd_pfn() for thp

The pfn calculation in pmd_pfn() is broken for thp, because it uses
HPAGE_SHIFT instead of the normal PAGE_SHIFT. This is fixed by removing
the distinction between thp and normal pmds in that function, and always
using PAGE_SHIFT.

Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/pgtable.h