[PATCH openEuler-5.10 24/88] mm/damon/vaddr: separate commonly usable functions