path: root/virt
diff options
authorGavin Shan <>2012-05-29 15:06:50 -0700
committerLinus Torvalds <>2012-05-29 16:22:24 -0700
commit4e2f07750d9a94e8f23e86408df5ab95be88bf11 (patch)
tree8d2d1b24619817b9a553361a9dc967b3c39a2585 /virt
parent5bf5f03c271907978489868a4c72aeb42b5127d2 (diff)
mm/memblock: cleanup on duplicate VA/PA conversion
The overall memblock has been organized into the memory regions and reserved regions. Initially, the memory regions and reserved regions are stored in the predetermined arrays of "struct memblock _region". It's possible for the arrays to be enlarged when we have newly added regions for them, but no enough space there. Under the situation, We will created double-sized array to meet the requirement. However, the original implementation converted the VA (Virtual Address) of the newly allocated array of regions to PA (Physical Address), then translate back when we allocates the new array from slab. That's actually unnecessary. The patch removes the duplicate VA/PA conversion. Signed-off-by: Gavin Shan <> Cc: Johannes Weiner <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions