mm: optimize get_scan_ratio for no swap