[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161017111055.GG23322@dhcp22.suse.cz>
Date: Mon, 17 Oct 2016 13:10:55 +0200
From: Michal Hocko <mhocko@...nel.org>
To: Minchan Kim <minchan@...nel.org>
Cc: Ming Ling <ming.ling@...eadtrum.com>, akpm@...ux-foundation.org,
mgorman@...hsingularity.net, vbabka@...e.cz, hannes@...xchg.org,
baiyaowei@...s.chinamobile.com, iamjoonsoo.kim@....com,
rientjes@...gle.com, hughd@...gle.com,
kirill.shutemov@...ux.intel.com, riel@...hat.com, mgorman@...e.de,
aquini@...hat.com, corbet@....net, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, orson.zhai@...eadtrum.com,
geng.ren@...eadtrum.com, chunyan.zhang@...eadtrum.com,
zhizhou.tian@...eadtrum.com, yuming.han@...eadtrum.com,
xiajing@...eadst.com
Subject: Re: [PATCH v2] mm: exclude isolated non-lru pages from
NR_ISOLATED_ANON or NR_ISOLATED_FILE.
On Mon 17-10-16 10:42:44, Michal Hocko wrote:
[...]
> Sure, what do you think about the following? I haven't marked it for
> stable because there was no bug report for it AFAIU.
And 0-day robot just noticed that I've screwed and need the following on
top. If the patch makes sense I will repost it to Andrew with this
folded in.
---
diff --git a/mm/compaction.c b/mm/compaction.c
index df1fd0c20e5c..70e6bec46dc2 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -850,7 +850,7 @@ isolate_migratepages_block(struct compact_control *cc, unsigned long low_pfn,
/* Successfully isolated */
del_page_from_lru_list(page, lruvec, page_lru(page));
- inc_node_page_state(zone->zone_pgdat,
+ inc_node_page_state(page,
NR_ISOLATED_ANON + page_is_file_cache(page));
isolate_success:
--
Michal Hocko
SUSE Labs
Powered by blists - more mailing lists