On Thu, Jul 19, 2018 at 07:05:36AM -0700, Dave Hansen wrote: > On 07/19/2018 01:27 AM, Kirill A. Shutemov wrote: > >> What other code might need prep_encrypted_page()? > > > > Custom pages allocators if these pages can end up in encrypted VMAs. > > > > It this case compaction creates own pool of pages to be used for > > allocation during page migration. > > OK, that makes sense. It also sounds like some great information to add > near prep_encrypted_page(). Okay. > Do we have any ability to catch cases like this if we get them wrong, or > will we just silently corrupt data? I cannot come up with any reasonable way to detect this immediately. I'll think about this more. -- Kirill A. Shutemov