diff options
author | 2010-03-05 13:41:45 -0800 | |
---|---|---|
committer | 2010-03-06 11:26:24 -0800 | |
commit | 45973d74fd3b1e3e16c025b688a725c7653b1443 (patch) | |
tree | 79b002bf8da8807a4d82314426611ca2109f83e8 /fs/file_table.c | |
parent | mm: use rlimit helpers (diff) | |
download | linux-rng-45973d74fd3b1e3e16c025b688a725c7653b1443.tar.xz linux-rng-45973d74fd3b1e3e16c025b688a725c7653b1443.zip |
vmscan: check high watermark after shrink zone
Kswapd checks that zone has sufficient pages free via zone_watermark_ok().
If any zone doesn't have enough pages, we set all_zones_ok to zero.
!all_zone_ok makes kswapd retry rather than sleeping.
I think the watermark check before shrink_zone() is pointless. Only after
kswapd has tried to shrink the zone is the check meaningful.
Move the check to after the call to shrink_zone().
[akpm@linux-foundation.org: fix comment, layout]
Signed-off-by: Minchan Kim <minchan.kim@gmail.com>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Rik van Riel <riel@redhat.com>
Reviewed-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/file_table.c')
0 files changed, 0 insertions, 0 deletions