/* Smallish @nr_to_scan's are deposited in @nr_saved_scan, until we collected @swap_cluster_max pages to scan.  */
static unsigned long nr_scan_try_batch(unsigned long nr_to_scan, unsigned long *nr_saved_scan)
/* Smallish @nr_to_scan's are deposited in @nr_saved_scan, until we collected @swap_cluster_max pages to scan.  */
static unsigned long nr_scan_try_batch(unsigned long nr_to_scan, unsigned long *nr_saved_scan)
{
	unsigned long nr;
	*nr_saved_scan += nr_to_scan;
	nr = *nr_saved_scan;
	if (nr >= SWAP_CLUSTER_MAX)
		*nr_saved_scan = 0;
	else
		nr = 0;
	return nr;
}