Re: page migration: Fail with error if swap not setup

Christoph Lameter
2006-03-15T03:59:40Z

On Tue, 14 Mar 2006, Andrew Morton wrote:

> But the operation can still fail if we run out of swapspace partway through
> - so this problem can still occur. The patch just makes it (much) less
> frequent.
>
> Surely it's possible to communicate -ENOSWAP correctly and reliably?

There are a number of possible failure conditions. The strategy of the
migration function is to migrate as much as possible and return the rest
without giving any reason. migrate_pages() returns the number of leftover
pages not the reasons they failed.