aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <[email protected]>2016-11-30 23:54:19 +0000
committerLinus Torvalds <[email protected]>2016-12-01 00:32:52 +0000
commit5cbc198ae08d84bd416b672ad8bd1222acd0855c (patch)
tree985d1c3e96076aaca0f485d26f04b9957f920013 /arch/powerpc/lib/code-patching.c
parentkasan: support use-after-scope detection (diff)
downloadkernel-5cbc198ae08d84bd416b672ad8bd1222acd0855c.tar.gz
kernel-5cbc198ae08d84bd416b672ad8bd1222acd0855c.zip
mm: fix false-positive WARN_ON() in truncate/invalidate for hugetlb
Hugetlb pages have ->index in size of the huge pages (PMD_SIZE or PUD_SIZE), not in PAGE_SIZE as other types of pages. This means we cannot user page_to_pgoff() to check whether we've got the right page for the radix-tree index. Let's introduce page_to_index() which would return radix-tree index for given page. We will be able to get rid of this once hugetlb will be switched to multi-order entries. Fixes: fc127da085c2 ("truncate: handle file thp") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Kirill A. Shutemov <[email protected]> Reported-by: Doug Nelson <[email protected]> Tested-by: Doug Nelson <[email protected]> Reviewed-by: Naoya Horiguchi <[email protected]> Cc: <[email protected]> [4.8+] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions