Re: [PATCH] Fix do_mlock so page alignment is to hugepage boundrieswhen needed

From: Christoph Lameter
Date: Wed May 17 2006 - 13:23:39 EST

On Wed, 17 May 2006, Eric Paris wrote:

> --- linux-
> +++ linux-
> @@ -104,6 +104,8 @@ typedef unsigned long pgprot_t;
> +/* to align the pointer to the (next) page boundary when dealing with hugepages*/
> +#define HPAGE_ALIGN(addr) (((addr)+HPAGE_SIZE-1)&HPAGE_MASK)
> #endif

Could you put the definition of HPAGE_ALIGN into include/linux/hugetlb.h
to avoid modifying all the page.h files?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at