Re: [RFC PATCH 1/3] mm:hugetlb: Define system call hugetlb size encodings in single file
From: Matthew Wilcox
Date: Mon Jul 17 2017 - 20:00:30 EST
On Mon, Jul 17, 2017 at 03:27:59PM -0700, Mike Kravetz wrote:
> +#define HUGETLB_FLAG_ENCODE_512KB (19 << MAP_HUGE_SHIFT
> +#define HUGETLB_FLAG_ENCODE_1MB (20 << MAP_HUGE_SHIFT)
> +#define HUGETLB_FLAG_ENCODE_2MB (21 << MAP_HUGE_SHIFT)
> +#define HUGETLB_FLAG_ENCODE_8MB (23 << MAP_HUGE_SHIFT)
> +#define HUGETLB_FLAG_ENCODE_16MB (24 << MAP_HUGE_SHIFT)
> +#define HUGETLB_FLAG_ENCODE_1GB (30 << MAP_HUGE_SHIFT)
> +#define HUGETLB_FLAG_ENCODE__16GB (34 << MAP_HUGE_SHIFT)
The __ seems like a mistake?