diff options
author | Will Deacon <[email protected]> | 2012-08-10 17:51:19 +0100 |
---|---|---|
committer | Russell King <[email protected]> | 2012-08-11 09:15:59 +0100 |
commit | f5f2025ef3e2cdb593707cbf87378761f17befbe (patch) | |
tree | 92e3e13ae25f950781294c112a4a03176e39fd10 /net/unix/sysctl_net_unix.c | |
parent | 47f1204329237a0f8655f5a9f14a38ac81946ca1 (diff) |
ARM: 7488/1: mm: use 5 bits for swapfile type encoding
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.
Cc: <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions