Re: [PATCH] Enable mprotect on huge pages

From: Christoph Hellwig
Date: Sat Feb 25 2006 - 03:51:52 EST


On Thu, Feb 23, 2006 at 11:19:40AM +0800, Zhang, Yanmin wrote:
> From: Zhang, Yanmin <yanmin.zhang@xxxxxxxxx>
>
> 2.6.16-rc3 uses hugetlb on-demand paging, but it doesn?t support hugetlb
> mprotect. My patch against 2.6.16-rc3 enables this capability.

Adding another special case for hugetlb pages sounds rather bad. Could
you try adding a mrotect vm_area_operation if that works out cleaner?

-
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/