projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0475327
)
memory hotplug: align memmap to page size
author
Yasunori Goto
<
[email protected]
>
Mon, 28 Apr 2008 09:13:32 +0000
(
02:13
-0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 28 Apr 2008 15:58:25 +0000
(08:58 -0700)
To free memmap easier, this patch aligns it to page size. Bootmem allocater
may mix some objects in one pages. It's not good for freeing memmap of memory
hot-remove.
Signed-off-by: Yasunori Goto <
[email protected]
>
Cc: Badari Pulavarty <
[email protected]
>
Cc: Yinghai Lu <
[email protected]
>
Cc: Yasunori Goto <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/sparse.c
patch
|
blob
|
history
diff --git
a/mm/sparse.c
b/mm/sparse.c
index 8903c484389adfe18be39db99b29c5e5840ed296..5398d48c360a96efafe69a7e5ad2f590c7693a43 100644
(file)
--- a/
mm/sparse.c
+++ b/
mm/sparse.c
@@
-273,8
+273,8
@@
struct page __init *sparse_mem_map_populate(unsigned long pnum, int nid)
if (map)
return map;
- map = alloc_bootmem_node(NODE_DATA(nid),
-
sizeof(struct page) * PAGES_PER_SECTION
);
+ map = alloc_bootmem_
pages_
node(NODE_DATA(nid),
+
PAGE_ALIGN(sizeof(struct page) * PAGES_PER_SECTION)
);
return map;
}
#endif /* !CONFIG_SPARSEMEM_VMEMMAP */