Messages in this thread Patch in this message |  | | | From | "Aneesh Kumar K.V" <> | | Subject | [PATCH] mm/hugetlb: Use hstate_index instead of open coding it | | Date | Mon, 28 May 2012 20:51:13 +0530 |
| |
From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Use hstate_index in hugetlb_init
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 4b90dd5..58eead5 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1891,7 +1891,7 @@ static int __init hugetlb_init(void) if (!size_to_hstate(default_hstate_size)) hugetlb_add_hstate(HUGETLB_PAGE_ORDER); } - default_hstate_idx = size_to_hstate(default_hstate_size) - hstates; + default_hstate_idx = hstate_index(size_to_hstate(default_hstate_size)); if (default_hstate_max_huge_pages) default_hstate.max_huge_pages = default_hstate_max_huge_pages; -- 1.7.10
|  |