Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp118758ybv; Wed, 12 Feb 2020 20:33:09 -0800 (PST) X-Google-Smtp-Source: APXvYqzJyirA/bEefWQcN3Y5bUB1qvyQ5WZMVlZmqX9nPh6h51geLQYjHGwxven0Rv+G4QDHuFqW X-Received: by 2002:a05:6830:4c7:: with SMTP id s7mr11732176otd.359.1581568389687; Wed, 12 Feb 2020 20:33:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581568389; cv=none; d=google.com; s=arc-20160816; b=x66Iezr91OpKQt7AIjh7Fc2t5IZuH3kN3eZjLeqWydBB+dxYOkx25v4D/kRFYB9hg5 ua459DK2+gR43y7OC4HMCM0PvPYrrUJ4RWicKTR+mRy1MyUnmOtOI5+xZVnFBYmSE5Wp Q9u2KBq07q02qWv0SXdh1eAtY2e5tE0UlKyXOnExFqbi7Y+5ZM1M5a5W5uXpz7Hrwb5d rZb1BBtrdgBlGWyx5whDN8Qw17kcp3VnlLkRSOQNNZZrlVaLo3Tz85jCyEgZekid+kTp W5hSI7/72uLZoWPtmx6v9JPf9h7D3wLQuK9hKc2d+7G5SQQAcwCAHIzh7bN2mM2lygA5 qzfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=nxaFH99l9/4h02aW2GCAo2yVI3nkXPWvY+kWgW6CWIs=; b=kttjkEcRfI9oNZdE1uTdqc4bUFv+5qa6PQGa/VkiSpbK1+Kom0FEpPNLHRAlg9ml+C 7QzPZ7LHI9+dLzsQ1T6xfFwE8yE/aiPVbn0JzoGM29xRPJZBpQT755N0OQxFW/EwUMFt vMrs+XcfUp2yBu5PufSpofwIN2woEV6c3FGEnnJvN9dxQcAXVapb1oaqADbt7KjOqJ1O xvyW0DB+go/kvfLmkQwG8Y/xnAc1idZ1McgzjATWIvLvJyv99DThtMD0++tvREXEetVY HiRh9wukzcaKzqJaLbc5bVlNG9uoJmXn72kbJfCfedy0GEH2rcAZfUloAqUA0LSuDEei Pt1g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si518788oth.26.2020.02.12.20.32.56; Wed, 12 Feb 2020 20:33:09 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729529AbgBMEbv (ORCPT + 99 others); Wed, 12 Feb 2020 23:31:51 -0500 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:45221 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729494AbgBMEbv (ORCPT ); Wed, 12 Feb 2020 23:31:51 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04446;MF=yang.shi@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0TprKpxQ_1581568298; Received: from localhost(mailfrom:yang.shi@linux.alibaba.com fp:SMTPD_---0TprKpxQ_1581568298) by smtp.aliyun-inc.com(127.0.0.1); Thu, 13 Feb 2020 12:31:47 +0800 From: Yang Shi To: minchan@kernel.org, anshuman.khandual@arm.com, akpm@linux-foundation.org Cc: yang.shi@linux.alibaba.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm: vmscan: replace open codings to NUMA_NO_NODE Date: Thu, 13 Feb 2020 12:31:38 +0800 Message-Id: <1581568298-45317-1-git-send-email-yang.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The commit 98fa15f34cb3 ("mm: replace all open encodings for NUMA_NO_NODE") did the replacement across the kernel tree, but we got some more in vmscan.c since then. Cc: Minchan Kim Cc: Anshuman Khandual Signed-off-by: Yang Shi --- mm/vmscan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index c05eb9e..567864a 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2096,7 +2096,7 @@ static void shrink_active_list(unsigned long nr_to_scan, unsigned long reclaim_pages(struct list_head *page_list) { - int nid = -1; + int nid = NUMA_NO_NODE; unsigned long nr_reclaimed = 0; LIST_HEAD(node_page_list); struct reclaim_stat dummy_stat; @@ -2111,7 +2111,7 @@ unsigned long reclaim_pages(struct list_head *page_list) while (!list_empty(page_list)) { page = lru_to_page(page_list); - if (nid == -1) { + if (nid == NUMA_NO_NODE) { nid = page_to_nid(page); INIT_LIST_HEAD(&node_page_list); } @@ -2132,7 +2132,7 @@ unsigned long reclaim_pages(struct list_head *page_list) putback_lru_page(page); } - nid = -1; + nid = NUMA_NO_NODE; } if (!list_empty(&node_page_list)) { -- 1.8.3.1