Re: [PATCH 1/1] dma-buf: heaps: Map system heap pages as managed by linux vm

From: Christoph Hellwig
Date: Tue Feb 02 2021 - 02:05:09 EST


IMHO the

BUG_ON(vma->vm_flags & VM_PFNMAP);

in vm_insert_page should just become a WARN_ON_ONCE with an error
return, and then we just need to gradually fix up the callers that
trigger it instead of coming up with workarounds like this.