[PATCH v3 3/8] mm: userfaultfd: extract file size check out into a helper