[PATCH v3 02/10] mm/mremap: refactor initial parameter sanity checks