[PATCH 6.5 265/491] mm/damon: implement a function for max nr_accesses safe calculation