[PATCH] arm64: mm: don't assume struct page is always 64 bytes
Catalin Marinas
catalin.marinas at arm.com
Wed Nov 11 10:24:57 EST 2020
On Tue, 10 Nov 2020 19:05:11 +0100, Ard Biesheuvel wrote:
> Commit 8c96400d6a39be7 simplified the page-to-virt and virt-to-page
> conversions, based on the assumption that struct page is always 64
> bytes in size, in which case we can use a single signed shift to
> perform the conversion (provided that the vmemmap array is placed
> appropriately in the kernel VA space)
>
> Unfortunately, this assumption turns out not to hold, and so we need
> to revert part of this commit, and go back to an affine transformation.
> Given that all the quantities involved are compile time constants,
> this should not make any practical difference.
Applied to arm64 (for-next/va-refactor), thanks!
[1/1] arm64: mm: don't assume struct page is always 64 bytes
https://git.kernel.org/arm64/c/50af6f00c7d7
--
Catalin
More information about the linux-arm-kernel
mailing list