On 11/21/2011 02:31 AM, Sergei Shtylyov wrote:
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?
Indeed, I could swear that I put '#define pmd_huge(x) 0' in that commit
log, but it is not there. The string was even still highlighted in my
editor. At this point I blame the 'git commit' command for erasing that
line.
David Daney
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