Re: mm snapshot broken-out-2007-03-18-02-44.tar.gz uploaded

From: Pekka J Enberg
Date: Mon Mar 19 2007 - 12:39:33 EST


On Mon, 19 Mar 2007, Michal Piotrowski wrote:
> > Yes, revoke-special-mmap-handling.patch is bad.
>
> + if (unlikely(vma->vm_flags & VM_REVOKED))
> + return -ENODEV;
>
> Why -ENODEV?

That's what we want when trying to remap a revoked mapping (the vma is
there, but you need to unmap it before reusing the region).

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