Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5351180imu; Tue, 13 Nov 2018 05:20:05 -0800 (PST) X-Google-Smtp-Source: AJdET5dhG6jOn2vEf1+oDPYqrapGjuFH8j8RqYD3wue0KAc+v3m6Lg0KG9ux8QgSO+R7uCeIToYB X-Received: by 2002:a62:4e49:: with SMTP id c70mr5055246pfb.167.1542115205696; Tue, 13 Nov 2018 05:20:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542115205; cv=none; d=google.com; s=arc-20160816; b=0XoUOQX2SEEvILrmgNLTVCUJKshKrcDRL5Sckj1R7cdTeftjcH3R9wY2c7tfisUeX6 glR3s75ClPWBNtW0+Z2NI6C1Vc4nNieVJ+32ujHw+QAonvgZYVkiJ5VY/dLT32EuSQvB V/MZBfQoQzaNZhrRdEYuriDAKhEgq3Hg7d963O9yW7hRJtozfYljmVCUqy/8FX742r+4 0LZoHi1pcL5ic3mMf9ivIzgW/5Ntd8H40pMlrCPW0eXJULW3eYFfrgx/FUwJbks91OXA veq6a/yaB8ipYa8BzNM6+jZW/YQu+zdR7iamjMmNE3mxUwuLXWAL5D1Xljmy4cThuCuH zmqw== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=YmOqzatQnn5Z7oda5wWT+SOf34ejkrcnDJLV30OzCYM=; b=bA+FI45Pmj57uIH8/ajrpiZKt5ljCPJo+6Vxnng1kS0pO5oMuvFTIjkULUTb4Ks1W4 TPJmvNR4eSOaaXuku2soJZ9fd/CceQvExHE6UHR1qRB1BmM98+EhHr8+h+MigS5eVBiu 3amw8wwbu+9omxwzeyVY7UlQeQRubqqZ9YWqpR3sI92wn19HlfrkZmsOj5QWLir4+2t+ zEl7ebVIjYQJhsh8eMRoHo714Yj52YjUNkXpocLRd33Rf+HeqYOD/dDwsbaWgiQawYuw prSlZUVdZkifLCs3c84l9b5eZZJa8zZphS8O93h0lqxJ5cNcAWxp8PFYpKs0xjCLvqJL o76g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ASezcexs; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e24-v6si19387031pgj.287.2018.11.13.05.19.38; Tue, 13 Nov 2018 05:20:05 -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=pass header.i=@gmail.com header.s=20161025 header.b=ASezcexs; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387470AbeKMXQv (ORCPT + 99 others); Tue, 13 Nov 2018 18:16:51 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:42091 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733226AbeKMXQu (ORCPT ); Tue, 13 Nov 2018 18:16:50 -0500 Received: by mail-ed1-f66.google.com with SMTP id j6so5423668edp.9 for ; Tue, 13 Nov 2018 05:18:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=YmOqzatQnn5Z7oda5wWT+SOf34ejkrcnDJLV30OzCYM=; b=ASezcexszYbAuYDSVCq+8AOLN6lvWFARkRcQueHQG5b4PhTv3I0qzcb8RH/BE5kl3V rGEF5M8VsowKAK9Eayb1xvHbvc4cAcToqRTBQDNJ6qaYSriPM95QiIFdwiBPQbU824wo AMEFY/ifb9V1hhMJqo4YsQRA6pMPPy86jIWuRBz7j+VdgGfNRJLARegfUMIiGKoMRT3V 6KG5HJ9taAILIWdVdlgZlZzf2mJ7UqhPk8TJ1cIOkxm0BqxJs68yp3G3UfjkxX+SMLZd 8cxwhej/uGYTGPERS5JYayEiiVOJi6V82LFqgmUEGIDZqlJkpAIEL9wT6VkiyS3N0DVa ehzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=YmOqzatQnn5Z7oda5wWT+SOf34ejkrcnDJLV30OzCYM=; b=IKYukAs9F8bopow2+oLw4asWgNiN9WCFIi5xnsO7Ve5mamjX/3C+WgucefcdoI3q+V 7aAY0Up4ockWdIv9wCZ698g6cJjMrCbtROE3KORrV7TWfR3VE17sSEAp2Mgefngsps0W kLcOjGJph+9UvaKgOE4dWp6pB0641MvpHzTPm1j5jovYGoEd9komr+4aCxNBaCXK89wd ndDv6AQ0X0E4V9q3OGTIebQohB7njQ6ADbcdgFK9t8pYhOG3UM76bKWvlCQ5h9lFYU8o b5jLIE6lowK3/o6b3inMo5UxM9x5MOp+QMxzD3CQ4GqdFkUz8kg6rjiPuhqSQ4y0tToU 3vxw== X-Gm-Message-State: AGRZ1gKnhlM9Sl0+DnmZsKqQ85zwpaxLEElTrh92068pnkuMUemNxkPf uEeXKwGzdP3rHu5aMfUjijE= X-Received: by 2002:a50:98a6:: with SMTP id j35-v6mr16161500edb.273.1542115122687; Tue, 13 Nov 2018 05:18:42 -0800 (PST) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id o62-v6sm5272874edd.13.2018.11.13.05.18.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Nov 2018 05:18:42 -0800 (PST) Date: Tue, 13 Nov 2018 13:18:41 +0000 From: Wei Yang To: Matthew Wilcox Cc: Wei Yang , 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: <20181113131841.z5t7uckslfjq2mwe@master> Reply-To: Wei Yang References: <20181113041750.20784-1-richard.weiyang@gmail.com> <20181113080436.22078-1-richard.weiyang@gmail.com> <20181113130420.GV21824@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181113130420.GV21824@bombadil.infradead.org> User-Agent: NeoMutt/20170113 (1.7.2) 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 05:04:20AM -0800, Matthew Wilcox wrote: >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 Thanks -- Wei Yang Help you, Help me