Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935074AbcJQLLq (ORCPT ); Mon, 17 Oct 2016 07:11:46 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:35831 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933344AbcJQLK6 (ORCPT ); Mon, 17 Oct 2016 07:10:58 -0400 Date: Mon, 17 Oct 2016 13:10:55 +0200 From: Michal Hocko To: Minchan Kim Cc: Ming Ling , akpm@linux-foundation.org, mgorman@techsingularity.net, vbabka@suse.cz, hannes@cmpxchg.org, baiyaowei@cmss.chinamobile.com, iamjoonsoo.kim@lge.com, rientjes@google.com, hughd@google.com, kirill.shutemov@linux.intel.com, riel@redhat.com, mgorman@suse.de, aquini@redhat.com, corbet@lwn.net, linux-mm@kvack.org, linux-kernel@vger.kernel.org, orson.zhai@spreadtrum.com, geng.ren@spreadtrum.com, chunyan.zhang@spreadtrum.com, zhizhou.tian@spreadtrum.com, yuming.han@spreadtrum.com, xiajing@spreadst.com Subject: Re: [PATCH v2] mm: exclude isolated non-lru pages from NR_ISOLATED_ANON or NR_ISOLATED_FILE. Message-ID: <20161017111055.GG23322@dhcp22.suse.cz> References: <20161014083219.GA20260@spreadtrum.com> <20161014113044.GB6063@dhcp22.suse.cz> <20161014134604.GA2179@blaptop> <20161014135334.GF6063@dhcp22.suse.cz> <20161014144448.GA2899@blaptop> <20161014150355.GH6063@dhcp22.suse.cz> <20161014152633.GA3157@blaptop> <20161015071044.GC9949@dhcp22.suse.cz> <20161016230618.GB9196@bbox> <20161017084244.GF23322@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161017084244.GF23322@dhcp22.suse.cz> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 822 Lines: 26 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