Actually, I think the pages must be allowed to be freed, and that we
don't put a requirement on "pageable" to keep
swap-space slots for these pages. If we hit an OOM-condition during
suspend-to-memory that's bad, but let's say we
required "pageable" to keep swap space slots for us, the result would
perhaps be that another device wasn't able to suspend, or a user-space
program was killed due to lack of swap-space prior to suspend.
I'm not really sure what's the worst situation, but my feeling is that
we should not require swap-space to be reserved for VRAM, and abort the
suspend operation if we hit OOM. That would, in the worst case, mean
that people with non-UMA laptops and a too small swap partition would
see their battery run out much quicker than they expected...
/Thomas
--