Re: VM_RESERVED vs vm_normal_page()

From: Robin Holt
Date: Wed Dec 13 2006 - 09:06:35 EST


On Wed, Dec 13, 2006 at 03:37:57PM +1100, Benjamin Herrenschmidt wrote:
> Hi folks !
>
> What is the logic regarding VM_RESERVED, and more specifically, why is
> vm_normal_page() nor returning NULL for these ?

Near as I could ever tell from the discussion on linux-mm, it is a page
which should not be dumped. If you have a normal page in a mapping
which you don't want swapped out, the only way I could ever figure to
prevent that from happening is by doing an extra get_user_page() on it
to add a reference.

Thanks,
Robin
-
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/