diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2011-09-20 21:45:56 +0200 | 
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2011-09-20 21:45:56 +0200 | 
| commit | 1fdb4888e45f1413972a8e9da55f3ffc08b9abcb (patch) | |
| tree | 635ef73cdff38d21a529bbdcab4cd2cb39a29484 /mm/page-writeback.c | |
| parent | 1884af9365a96314164f4110d4528d425e5dd843 (diff) | |
| parent | ceb1c532ba6220900e61ec7073a9234661efa450 (diff) | |
Merge branch 'omap/cleanup' into next/cleanup
Diffstat (limited to 'mm/page-writeback.c')
| -rw-r--r-- | mm/page-writeback.c | 15 | 
1 files changed, 2 insertions, 13 deletions
| diff --git a/mm/page-writeback.c b/mm/page-writeback.c index d1960744f881..0e309cd1b5b9 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -754,21 +754,10 @@ static void balance_dirty_pages(struct address_space *mapping,  		 * 200ms is typically more than enough to curb heavy dirtiers;  		 * (b) the pause time limit makes the dirtiers more responsive.  		 */ -		if (nr_dirty < dirty_thresh + -			       dirty_thresh / DIRTY_MAXPAUSE_AREA && +		if (nr_dirty < dirty_thresh && +		    bdi_dirty < (task_bdi_thresh + bdi_thresh) / 2 &&  		    time_after(jiffies, start_time + MAX_PAUSE))  			break; -		/* -		 * pass-good area. When some bdi gets blocked (eg. NFS server -		 * not responding), or write bandwidth dropped dramatically due -		 * to concurrent reads, or dirty threshold suddenly dropped and -		 * the dirty pages cannot be brought down anytime soon (eg. on -		 * slow USB stick), at least let go of the good bdi's. -		 */ -		if (nr_dirty < dirty_thresh + -			       dirty_thresh / DIRTY_PASSGOOD_AREA && -		    bdi_dirty < bdi_thresh) -			break;  		/*  		 * Increase the delay for each loop, up to our previous | 
