Re: hugepage: Fix broken check for offset alignment in hugepage mappings

2007-08-26 Thread Benjamin Herrenschmidt
On Mon, 2007-08-27 at 14:36 +1000, David Gibson wrote: > This patch restores the check, removing it from > prepare_hugepage_range() and putting it back into > hugetlbfs_file_mmap(). I'm putting it there, rather than in the > get_unmapped_area() path so it only needs to go in one place, than > sepa

hugepage: Fix broken check for offset alignment in hugepage mappings

2007-08-26 Thread David Gibson
For hugepage mappings, the file offset, like the address and size, needs to be aligned to the size of a hugepage. In commit 68589bc353037f233fe510ad9ff432338c95db66, the check for this was moved into prepare_hugepage_range() along with the address and size checks. But since BenH's rework of the g