Re: [PATCH] smaps should deal with huge zero page exactly same as normal zero page
From: Dave Hansen
Date: Fri Oct 10 2014 - 10:35:54 EST
On 10/10/2014 06:21 AM, Fengwei Yin wrote:
> @@ -787,6 +788,9 @@ check_pfn:
> return NULL;
> }
>
> + if (is_huge_zero_pfn(pfn))
> + return NULL;
> +
That looks a lot better. One thing, why not put the is_huge_zero_pfn()
check next to the is_zero_pfn() check?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/