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

From
Balbir Singh <bsingharora@gmail.com>
Date
2016-04-21 11:42:48
Reply to
Michael Ellerman, 2016-04-21

On 21/04/16 19:59, Michael Ellerman wrote:
On Thu, 2016-04-21 at 19:53 +1000, Balbir Singh wrote:
quoted
On 09/04/16 16:13, Aneesh Kumar K.V wrote:
quoted
+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
Aaah.. makes sense

Cheers
Balbir Singh.
Thread (139 messages) 139 messages, 9 authors, last reply 2016-11-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help