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