Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5336934imu; Tue, 13 Nov 2018 05:08:13 -0800 (PST) X-Google-Smtp-Source: AJdET5fVpn07QwQVy/GHXB/ZFaSnBqSZ6HisuMv27pEEuk9JfBduJSD1IsAyiiDoC4ZJea4RIDxp X-Received: by 2002:a17:902:bd4a:: with SMTP id b10mr2216733plx.232.1542114493039; Tue, 13 Nov 2018 05:08:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542114493; cv=none; d=google.com; s=arc-20160816; b=qtqAuMMMLfJJu/suXIWp4NC0NAE0I2Zup5hDp56F423/4wcbV5uPhyIqabYKKKy6L7 Pdb2luxoNS8YfAFVuqK8qtWzrWxE2xDq9BBbZ/TIzFfWe1HhbSGej0vflx34dkK7Yz1I wLFxwX4XVWU/U1PEZYoSiLL3nwCMuLQyzKtHkjhEePQIzUoDIq6d+3z6xER/PGX2sMOa L7DoP7TDz633gd/WqI6piRewCcpsIV2lRxrr9nZQil9SiU8pG5SpSyt5lJGnw8/m/ztV b5GNRTuhYK3V5ZaKR5zfrQDfVUjBXi2mfi1HM09h4yKosD6UT+aNW4mNK/qyRAb6/sQa Jcng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Xw0e9pUuPE4jyfmt82hmla1ifjaoOHX2HYiDGLajvQ8=; b=flDQd2rhKAMW0+M+nogHjblDUkzuI/JbUE0DrIFkgV1WkcSs19nuzmIPs3lm6bH31Y J6GlCR00TLR0AyBGBD5cA7dgNp0dLylgGyvJE4X04o+/cuw0gNbg/IIv2eNLDcJ61r+R 2AbVKMAjzJXFg3UetOE1IEmFqWXOnrKrQ7wTYisxrXG94vN+yLrw4Bt0Vcf4pXYOK68b xT6Knrkfo7w/rd53WPxDDEu+Ir0Ag67/HcZlghrSe3XFUGdd9wEmdSscsVaPacTFH26B wIwiEVqCRpTnqx/XGGkQkgkfhj5uYLqO3iBDu2pmK+HjayQ8aycrSKwJ+YA1TgrunsbO Ebrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gNjmATLF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m187-v6si23221075pfm.159.2018.11.13.05.07.29; Tue, 13 Nov 2018 05:08:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gNjmATLF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733242AbeKMXCZ (ORCPT + 99 others); Tue, 13 Nov 2018 18:02:25 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:37828 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733149AbeKMXCZ (ORCPT ); Tue, 13 Nov 2018 18:02:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Xw0e9pUuPE4jyfmt82hmla1ifjaoOHX2HYiDGLajvQ8=; b=gNjmATLFb6RdRz1/NdxrLly7r UgbDZLY3Bz2+fC3QMcuKjzrKQXcTB3NQsGR79zK1C+VCvUrlXVZrroPpU/balgwUod/OjRXlBwrYv Q+kUm7TSWchIV14rM593yS+Km4sS/fYNjhpJUcLMXhXutFXSFHLs8ygWHEEz4vcQs9zlAwU81yQYr 24JMVx+qJJREn4c9CjLeWZFS4iuuBcg77nmPnzY4ZcJ9zqAEKEUCCg3GtHj7tNeLU9a4iOehgtto9 msG4hNRkmnGDTjkOqevgJVLODvnFJSKvtjc1ihknnenqI8GT14bZbsjHHm3yW3yt/ipgJjaPs4jWx kc55vq2eA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMYMe-00055j-Pt; Tue, 13 Nov 2018 13:04:20 +0000 Date: Tue, 13 Nov 2018 05:04:20 -0800 From: Matthew Wilcox To: Wei Yang Cc: akpm@linux-foundation.org, mgorman@techsingularity.net, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n Message-ID: <20181113130420.GV21824@bombadil.infradead.org> References: <20181113041750.20784-1-richard.weiyang@gmail.com> <20181113080436.22078-1-richard.weiyang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181113080436.22078-1-richard.weiyang@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 13, 2018 at 04:04:36PM +0800, Wei Yang wrote: > Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that > fail zone_reclaim() as full") changed the return value of node_reclaim(). > The original return value 0 means NODE_RECLAIM_SOME after this commit. > > While the return value of node_reclaim() when CONFIG_NUMA is n is not > changed. This will leads to call zone_watermark_ok() again. > > This patch fix the return value by adjusting to NODE_RECLAIM_NOSCAN. Since > node_reclaim() is only called in page_alloc.c, move it to mm/internal.h. > > Signed-off-by: Wei Yang Reviewed-by: Matthew Wilcox