[PATCH 6.1 191/372] mm/damon: implement a function for max nr_accesses safe calculation