From patchwork Tue Apr 26 02:17:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 12826420 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD73AC433EF for ; Tue, 26 Apr 2022 02:18:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 07D286B0073; Mon, 25 Apr 2022 22:18:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 004306B0074; Mon, 25 Apr 2022 22:18:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DC0556B0075; Mon, 25 Apr 2022 22:18:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.26]) by kanga.kvack.org (Postfix) with ESMTP id C931E6B0073 for ; Mon, 25 Apr 2022 22:18:28 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 909D82B1 for ; Tue, 26 Apr 2022 02:18:28 +0000 (UTC) X-FDA: 79397421096.20.0D295DA Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) by imf13.hostedemail.com (Postfix) with ESMTP id 3B56720041 for ; Tue, 26 Apr 2022 02:18:22 +0000 (UTC) Received: by mail-ej1-f53.google.com with SMTP id bv19so33167239ejb.6 for ; Mon, 25 Apr 2022 19:18:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=IGRYgnE1lMPbLi7u/6ssra+FaSfoG1U2uhawec1PdkQ=; b=E/gcqL5sIYie+YjznKBL/8H9aAGws1YtdR+qBvb415NP04cHSVoENjr8GRthSd+jEu UDCmLCueFt1FEOF7fYcCXtsxU8siD5s+Q01pkzgOZIpQP0uUi5uNc/zNnVaaKRD17XQu JOTH2QTYY/RhlA2HjJyoDfWUFCrWHQJ1DB2usysH3HBY7yLr7TNTbPE1HiYWjJLt5UcK Mn3YCjQ+RXqOSRSYxHsYfaW7zqu3pUos1JzQMg1n1SKX0sMWBzzU/MB0nCUga2pS2y2v G/0yJ0P4jjX2DbeD/XJ+tuBPa33Vv2fjW7Ljw8/UvHfq2TNoBgVHmILW6VpEiGiThHnT pluA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IGRYgnE1lMPbLi7u/6ssra+FaSfoG1U2uhawec1PdkQ=; b=0hesP/apGcH543+lxzzT1SfkNJYR1dBsn5ouhi/cTZE9tDPtvhW5dkvYPKZo4/MH29 3yPtVRQqh59V21RMqDTK6haQERqVACuLbCGSQDmmlc/69ifySjKoBGiIg3GQeepJJZVQ oaH3Rh7j+70hwVTuAgLIaUobGhhMPYnLm7EJDX7k2r97Ce37G/N7DsdRf1YNtfy4y3nT 2KysMgUqxIW8BnmGQaesCvDZ+2sqlLlrR21Q23ueg80mRcNAOYdp480pE3s6hr2P0S5p jp6lIR0oaHzoLiRz0sRj2mLYUcn0etqGaCRj45EtpfmWlecP5IKUMDsyaPYLkn5N5d7X 7iRQ== X-Gm-Message-State: AOAM532+O03UcGyq+vc6GZZ8o0ZGmPRRs9NdRt+QIAnHoxPfWgc64qsr bFZCOzqY9Djz/keV7pxFArg= X-Google-Smtp-Source: ABdhPJx8fs1FW1VajLGUOqUi0WR5XhBn4zS/E7u7ovmWQ3yNgS8ZnIBvzqWyfal2i7wEFu3hWKAU6g== X-Received: by 2002:a17:907:2d93:b0:6f3:8524:6f92 with SMTP id gt19-20020a1709072d9300b006f385246f92mr11003860ejc.556.1650939506691; Mon, 25 Apr 2022 19:18:26 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id vw17-20020a170907059100b006e8732d1944sm4152180ejb.5.2022.04.25.19.18.26 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Apr 2022 19:18:26 -0700 (PDT) From: Wei Yang To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, Wei Yang Subject: [PATCH 1/3] mm/vmscan: not necessary to re-init the list for each iteration Date: Tue, 26 Apr 2022 02:17:41 +0000 Message-Id: <20220426021743.21007-1-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 X-Stat-Signature: ruw3oktucxbptzumdrziuoyed4ko5jkf X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 3B56720041 X-Rspam-User: Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="E/gcqL5s"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf13.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.53 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com X-HE-Tag: 1650939502-532038 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000002, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: node_page_list is defined with LIST_HEAD and be cleaned until list_empty. So it is not necessary to re-init it again. Signed-off-by: Wei Yang --- mm/vmscan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 0b7cc9309e70..9b5ce5778e9b 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2539,7 +2539,6 @@ unsigned long reclaim_pages(struct list_head *page_list) page = lru_to_page(page_list); if (nid == NUMA_NO_NODE) { nid = page_to_nid(page); - INIT_LIST_HEAD(&node_page_list); } if (nid == page_to_nid(page)) {