Re: [hugepage] Fix unmap_and_free_vma backout path

Christoph Lameter
2006-11-13T05:29:48Z

On Mon, 13 Nov 2006, 'David Gibson' wrote:

> This may not be all we want. Even with this patch, performing such a
> failing map on to of an existing mapping will clobber (unmap) that
> pre-existing mapping. This is in contrast to the analogous situation
> with normal page mappings - mapping on top with a misaligned offset
> will fail early enough not to clobber the pre-existing mapping.

Then it is best to check the huge page alignment at the
same place as regular alignment.