Bartlomiej Zolnierkiewicz a458431e17 mm: fix zone_watermark_ok_safe() accounting of isolated pages
Commit 702d1a6e0766 ("memory-hotplug: fix kswapd looping forever
problem") added an isolated pageblocks counter (nr_pageblock_isolate in
struct zone) and used it to adjust free pages counter in
zone_watermark_ok_safe() to prevent kswapd looping forever problem.

Then later, commit 2139cbe627b8 ("cma: fix counting of isolated pages")
fixed accounting of isolated pages in global free pages counter.  It
made the previous zone_watermark_ok_safe() fix unnecessary and
potentially harmful (cause now isolated pages may be accounted twice
making free pages counter incorrect).

This patch removes the special isolated pageblocks counter altogether
which fixes zone_watermark_ok_safe() free pages check.

Reported-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Aaditya Kumar <aaditya.kumar.30@gmail.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Michal Nazarewicz <mina86@mina86.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-01-04 16:11:46 -08:00
..
2013-01-02 17:36:10 -08:00
2012-12-11 11:19:09 -08:00
2012-12-13 19:26:04 -08:00
2013-01-02 17:36:10 -08:00
2012-12-07 17:02:47 +00:00
2013-01-02 17:36:10 -08:00
2012-11-30 12:37:36 +01:00
2012-10-08 13:50:20 +10:30
2012-12-02 00:05:12 +00:00
2012-11-15 00:34:23 +01:00
2012-12-20 13:57:36 -05:00
2012-12-21 20:23:41 +00:00
2012-11-08 16:58:31 +01:00
2012-11-28 11:54:40 +01:00
2012-10-16 18:49:15 -07:00
2012-11-22 13:43:27 +09:00
2012-11-28 21:49:02 -05:00
2012-11-28 21:49:02 -05:00
2012-11-08 16:58:30 +01:00
2012-11-21 10:07:48 +01:00
2012-10-29 21:31:32 +01:00
2012-12-16 15:18:08 -08:00
2012-12-16 15:18:08 -08:00
2012-11-23 12:23:40 +01:00
2012-12-14 13:05:26 +10:30
2012-11-21 15:09:26 -08:00
2012-11-20 16:15:02 +10:00
2012-11-03 14:50:15 -04:00
2012-10-10 01:15:44 -04:00
2012-12-12 17:38:33 -08:00
2012-12-16 15:18:08 -08:00
2012-12-20 18:46:29 -05:00
2012-10-10 20:00:55 +10:30
2012-12-14 13:06:40 +10:30
2012-12-11 17:22:27 -08:00
2012-10-17 15:53:02 -05:00
2012-10-10 22:41:05 -04:00
2012-12-13 12:14:47 -08:00
2013-01-03 15:57:14 -08:00
2012-11-16 14:33:04 -08:00
2012-10-06 03:05:01 +09:00
2012-12-18 15:02:13 -08:00
2012-12-18 15:02:14 -08:00
2012-10-27 15:38:29 -07:00
2012-10-09 16:22:55 +09:00
2012-10-09 16:22:32 +09:00
2012-10-22 16:58:28 -07:00
2012-11-15 17:20:58 -08:00
2012-12-16 15:18:08 -08:00