[PATCH OLK-6.6 279/525] mm/damon: implement a function for max nr_accesses safe calculation