From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752517AbcGYJXe (ORCPT ); Mon, 25 Jul 2016 05:23:34 -0400 Received: from outbound-smtp10.blacknight.com ([46.22.139.15]:32878 "EHLO outbound-smtp10.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751589AbcGYJX2 (ORCPT ); Mon, 25 Jul 2016 05:23:28 -0400 Date: Mon, 25 Jul 2016 10:23:24 +0100 From: Mel Gorman To: Andrew Morton Cc: Minchan Kim , Johannes Weiner , Michal Hocko , Vlastimil Babka , Linux-MM , LKML Subject: [PATCH] mm, vmscan: remove highmem_file_pages -fix Message-ID: <20160725092324.GM10438@techsingularity.net> References: <1469110261-7365-1-git-send-email-mgorman@techsingularity.net> <1469110261-7365-3-git-send-email-mgorman@techsingularity.net> <20160725080911.GC1660@bbox> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20160725080911.GC1660@bbox> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The wrong stat is being accumulatedin highmem_dirtyable_memory, fix it. This is a fix to the mmotm patch mm-vmscan-remove-highmem_file_pages.patch Signed-off-by: Mel Gorman --- mm/page-writeback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 7e9061ec040b..f4cd7d8005c9 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -322,8 +322,8 @@ static unsigned long highmem_dirtyable_memory(unsigned long total) nr_pages = zone_page_state(z, NR_FREE_PAGES); /* watch for underflows */ nr_pages -= min(nr_pages, high_wmark_pages(z)); - nr_pages += zone_page_state(z, NR_INACTIVE_FILE); - nr_pages += zone_page_state(z, NR_ACTIVE_FILE); + nr_pages += zone_page_state(z, NR_ZONE_INACTIVE_FILE); + nr_pages += zone_page_state(z, NR_ZONE_ACTIVE_FILE); x += nr_pages; } }