diff options
author | Yinghai Lu <[email protected]> | 2010-10-12 14:07:09 -0700 |
---|---|---|
committer | H. Peter Anvin <[email protected]> | 2010-10-12 15:37:51 -0700 |
commit | c7fc2de0c83dbd2eaf759c5cd0e2b9cf1eb4df3a (patch) | |
tree | c4413e9b3bc164394c2daccf34e18e0b1d6c8811 /net/unix/sysctl_net_unix.c | |
parent | 8e4029ee3517084ae00fbfbcb51cc365d8857061 (diff) |
memblock, bootmem: Round pfn properly for memory and reserved regions
We need to round memory regions correctly -- specifically, we need to
round reserved region in the more expansive direction (lower limit
down, upper limit up) whereas usable memory regions need to be rounded
in the more restrictive direction (lower limit up, upper limit down).
This introduces two set of inlines:
memblock_region_memory_base_pfn()
memblock_region_memory_end_pfn()
memblock_region_reserved_base_pfn()
memblock_region_reserved_end_pfn()
Although they are antisymmetric (and therefore are technically
duplicates) the use of the different inlines explicitly documents the
programmer's intention.
The lack of proper rounding caused a bug on ARM, which was then found
to also affect other architectures.
Reported-by: Russell King <[email protected]>
Signed-off-by: Yinghai Lu <[email protected]>
LKML-Reference: <[email protected]>
Cc: Jeremy Fitzhardinge <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions