/* Set the initial window size, round to next power of 2 and square for small size, x 4 for medium, and x 2 for large for 128k (32 page) max ra 1-8 page = 32k initial, > 8 page = 128k initial  */
static unsigned long get_init_ra_size(unsigned long size, unsigned long max)
/* Set the initial window size, round to next power of 2 and square for small size, x 4 for medium, and x 2 for large for 128k (32 page) max ra 1-8 page = 32k initial, > 8 page = 128k initial  */
static unsigned long get_init_ra_size(unsigned long size, unsigned long max)
{
	unsigned long newsize = roundup_pow_of_two(size);
	if (newsize <= max / 32)
		newsize = newsize * 4;
	else if (newsize <= max / 4)
		newsize = newsize * 2;
	else
		newsize = max;
	return newsize;
}