[PATCH v3 06/10] mm/mremap: check remap conditions earlier