diff options
author | Will Deacon <will.deacon@arm.com> | 2012-08-10 17:51:19 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-14 10:00:36 -0700 |
commit | cb8a66cbdd326f905b95c9af77cb2f32b26dbd27 (patch) | |
tree | 3bec27352cf4d83fde952758ee63093539c3126d /arch/x86/include/asm/pgtable_32.h | |
parent | 9a0417a2d4b082bede8c0495d14d8bb20afaa700 (diff) | |
download | lwn-cb8a66cbdd326f905b95c9af77cb2f32b26dbd27.tar.gz lwn-cb8a66cbdd326f905b95c9af77cb2f32b26dbd27.zip |
ARM: 7488/1: mm: use 5 bits for swapfile type encoding
commit f5f2025ef3e2cdb593707cbf87378761f17befbe upstream.
Page migration encodes the pfn in the offset field of a swp_entry_t.
For LPAE, we support physical addresses of up to 36 bits (due to
sparsemem limitations with the size of page flags), requiring 24 bits
to represent a pfn. A further 3 bits are used to encode a swp_entry into
a pte, leaving 5 bits for the type field. Furthermore, the core code
defines MAX_SWAPFILES_SHIFT as 5, so the additional type bit does not
get used.
This patch reduces the width of the type field to 5 bits, allowing us
to create up to 31 swapfiles of 64GB each.
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/include/asm/pgtable_32.h')
0 files changed, 0 insertions, 0 deletions