generic hugetlbfs can handle that condition correctly. With HPAGE_SHIFT = 0
we get
[0.241333] hugetlbfs: disabling because there are no supported hugepage sizes
bash-4.2# echo 30 > /proc/sys/vm/nr_hugepages
bash: echo: write error: Operation not supported
Fixes: "powerpc: get hugetlbpage handling more generic"
Reported-by: Chris Smart <redacted>
Signed-off-by: Aneesh Kumar K.V <redacted>
---
arch/powerpc/mm/hugetlbpage.c | 3 ---
1 file changed, 3 deletions(-)
@@ -852,9 +852,6 @@ static int __init hugetlbpage_init(void)elseif(mmu_psize_defs[MMU_PAGE_2M].shift)HPAGE_SHIFT=mmu_psize_defs[MMU_PAGE_2M].shift;#endif-else-panic("%s: Unable to set default huge page size\n",__func__);-return0;}
generic hugetlbfs can handle that condition correctly. With HPAGE_SHIFT = 0
Need to add some context here. "That condition" refers to something without
first mentioning it.
we get
[0.241333] hugetlbfs: disabling because there are no supported hugepage sizes
bash-4.2# echo 30 > /proc/sys/vm/nr_hugepages
bash: echo: write error: Operation not supported
Fixes: "powerpc: get hugetlbpage handling more generic"
Dont we need the commit SHA for the "Fixes" header ?
generic hugetlbfs can handle that condition correctly. With HPAGE_SHIFT = 0
Need to add some context here. "That condition" refers to something without
first mentioning it.
It is the conditinal statement that gets removed as part of this patch.
The next line also explains what the generic code does for that condition.
quoted
we get
[0.241333] hugetlbfs: disabling because there are no supported hugepage sizes
bash-4.2# echo 30 > /proc/sys/vm/nr_hugepages
bash: echo: write error: Operation not supported
Fixes: "powerpc: get hugetlbpage handling more generic"
Dont we need the commit SHA for the "Fixes" header ?
When I wrote the patch, the commit was not upstream. Hence i didn't had
an SHA1 to put there.
-aneesh
From: Michael Ellerman <hidden> Date: 2017-01-18 12:10:20
On Tue, 2016-12-13 at 14:04:11 UTC, "Aneesh Kumar K.V" wrote:
generic hugetlbfs can handle that condition correctly. With HPAGE_SHIFT = 0
we get
[0.241333] hugetlbfs: disabling because there are no supported hugepage sizes
bash-4.2# echo 30 > /proc/sys/vm/nr_hugepages
bash: echo: write error: Operation not supported
Fixes: "powerpc: get hugetlbpage handling more generic"
Reported-by: Chris Smart <redacted>
Signed-off-by: Aneesh Kumar K.V <redacted>
Acked-By: Michael Neuling <redacted>