Hello. On 19-11-2011 1:30, David Daney wrote:
From: David Daney<david.daney@xxxxxxxxxx>
In the case of !CONFIG_HUGETLB_PAGE, in linux/hugetlb.h we have this definition:
Missed it?
The other huge page constants in the if(pmd_huge()) block are likewise defined, so we can get rid of the #ifdef CONFIG_HUGETLB_PAGE an let the compiler optimize this block away instead. Doing this the code has a much cleaner appearance.
Signed-off-by: David Daney <david.daney@xxxxxxxxxx>
WBR, Sergei