/* When balance_dirty_pages decides that the caller needs to perform some non-background writeback, this is how many pages it will attempt to write. It should be somewhat larger than dirtied pages to ensure that reasonably large amounts of I/O are submitted.  */
static long sync_writeback_pages(unsigned long dirtied)
/* When balance_dirty_pages decides that the caller needs to perform some non-background writeback, this is how many pages it will attempt to write. It should be somewhat larger than dirtied pages to ensure that reasonably large amounts of I/O are submitted.  */
static long sync_writeback_pages(unsigned long dirtied)
{
	if (dirtied < ratelimit_pages)
		dirtied = ratelimit_pages;
	return dirtied + dirtied / 2;
}