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:
949698a
)
mm/hugetlb.c: use first_memory_node
author
Andrew Morton
<
[email protected]
>
Fri, 20 May 2016 00:11:40 +0000
(17:11 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 20 May 2016 02:12:14 +0000
(19:12 -0700)
Instead of open-coding it.
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/hugetlb.c
patch
|
blob
|
history
diff --git
a/mm/hugetlb.c
b/mm/hugetlb.c
index 0adb74d0a4e1f57e8a305ca5445c7f75edd58137..0f580ea7f41d9137ecc379468f4e1029703cd802 100644
(file)
--- a/
mm/hugetlb.c
+++ b/
mm/hugetlb.c
@@
-2684,8
+2684,8
@@
void __init hugetlb_add_hstate(unsigned int order)
for (i = 0; i < MAX_NUMNODES; ++i)
INIT_LIST_HEAD(&h->hugepage_freelists[i]);
INIT_LIST_HEAD(&h->hugepage_activelist);
- h->next_nid_to_alloc = first_
node(node_states[N_MEMORY])
;
- h->next_nid_to_free = first_
node(node_states[N_MEMORY])
;
+ h->next_nid_to_alloc = first_
memory_node
;
+ h->next_nid_to_free = first_
memory_node
;
snprintf(h->name, HSTATE_NAME_LEN, "hugepages-%lukB",
huge_page_size(h)/1024);