# Re: \[PATCH V2 29/68\] powerpc/mm: Move hugetlb and THP related pmd accessors to pgtable.h

- From: Michael Ellerman \<mpe@ellerman.id.au\>
- Date: 2016-04-21 09:59:57 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2016/04/9489488
- Thread: https://ratatoskr.run/linuxppc-dev/2016/04/9489240/t/2.md

```text
On Thu, 2016-04-21 at 19:53 +1000, Balbir Singh wrote:
> On 09/04/16 16:13, Aneesh Kumar K.V wrote:
> > +static inline int pgd_huge(pgd_t pgd)
> > +{
> > +	/*
> > +	 * leaf pte for huge page
> > +	 */
> > +	return !!(pgd_val(pgd) & _PAGE_PTE);
> > +}
> > +#define pgd_huge pgd_huge
> > +
> 
> ??

#ifndef pgd_huge
#define pgd_huge(x)	0
#endif

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/linux/hugetlb.h#n185

cheers
```
