make it clear that portalAlloc returns an fd
added PortalMat::cacheFlushInvalidate()