# Re: powerpc/mm/hugetlb: Don't panic if we don't find the default huge page size

- From: Michael Ellerman \<hidden\>
- Date: 2017-01-18 12:10:20 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2017/01/9494717
- Thread: https://ratatoskr.run/linuxppc-dev/2016/12/9494321/t.md

```text
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>

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/ff8b85796dad5de869dc29903c9566

cheers
```
