arm64: hugetlb: fix the wrong return value for huge_ptep_set_access_flags
authorHuang Shijie <shijie.huang@arm.com>
Wed, 11 Jan 2017 06:02:00 +0000 (14:02 +0800)
committerAlex Shi <alex.shi@linaro.org>
Wed, 22 Mar 2017 10:00:13 +0000 (18:00 +0800)
commit5a54b72529e96f3ca594e9ef3bfc9be68700900b
tree42a1eaa536bc8688859aadae05febbfdc4871711
parent4fc54a30664c50ccca342ec0a81c8c1efce0a0bf
arm64: hugetlb: fix the wrong return value for huge_ptep_set_access_flags

In current code, the @changed always returns the last one's status for
the huge page with the contiguous bit set. This is really not what we
want. Even one of the PTEs is changed, we should tell it to the caller.

This patch fixes this issue.

Fixes: 66b3923a1a0f ("arm64: hugetlb: add support for PTE contiguous bit")
Cc: <stable@vger.kernel.org> # 4.5.x-
Signed-off-by: Huang Shijie <shijie.huang@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 69d012345a1a32d3f03957f14d972efccc106a98)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/mm/hugetlbpage.c