From patchwork Sun Oct 21 02:39:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 10650705 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CE5A513A9 for ; Sun, 21 Oct 2018 02:39:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B55CD285EA for ; Sun, 21 Oct 2018 02:39:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A62FB285ED; Sun, 21 Oct 2018 02:39:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B952285EA for ; Sun, 21 Oct 2018 02:39:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C6A046B000D; Sat, 20 Oct 2018 22:39:51 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id C19AE6B000E; Sat, 20 Oct 2018 22:39:51 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ABB8A6B0010; Sat, 20 Oct 2018 22:39:51 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by kanga.kvack.org (Postfix) with ESMTP id 678036B000D for ; Sat, 20 Oct 2018 22:39:51 -0400 (EDT) Received: by mail-pl1-f200.google.com with SMTP id j9-v6so24039628plt.3 for ; Sat, 20 Oct 2018 19:39:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id; bh=MEGeLN8LC/tnvru4r2bS6Yo1TdpJWDgqW7VRfFRA1Bo=; b=a0Dhpic5z69U0yW+0ukRwovwuWjHGeNHZFT+LCOgKrlni1FzqU6+4b7i002u2m6DD2 mhuSRLv6MKFqxCdp4FKcq4nRVteiSorOPWt19I3lD3xU9/px4ymE+C4eTohUV7By/wuc RsHC5kYT58YH8o4rqBVAf8LYp5G8xu9fXELfEaLb6NUkbw4nz/eq9iOgAXLSwsML2/ET ubTROffkJm2IFbdB/1ugPLNXMsFhyZ2TJJDhEzv2Gb3iAKU63noo1pegL0J9waOp/9g2 Aks6Ejf/kxHNmvrB0AkdefzNn7GUMfSMHTCDOy08E1kUxPEJLy6xTmWUdtw/m9HyEWSH jXww== X-Gm-Message-State: ABuFfohHbZ7SGohnWUrQnHt1UGe6YMy6WOm4GMmMjhao/k8jDRzlAwb5 6b+oDpctFfoKAAQ6MYlRwNFaetEbDs4p4OdrW8xrCwlc1qy0O6oKGhbl4bmtFJlTO5ZCUmIfHjJ pN43FfD7pO5WxshroAWxPjCHg+9u5vDwnwbH/hSw5tmtFCU1nGvUdh8Q/TOYcF1Pd35arU7fXU2 wa1/5GopeMS8dMF0yXohCA+FoxmEbl/d1zUPIMUTG64TpE7/VyG+Ro5Lf+4PAl0yBoFHXhlB/4P /Oq2HlxmqCaDxC07S0P7nQ6s6uQLVDeXGsXQ7GDx5NiuKYZGZuEg722FMHboL/TJKR8JV5bto0F lfrpv/s+Jcd+3M3K4oMivm3MfVklr6PVGOtTfcUPlPG+mDNc7nJ0vqFV0kyV77Q3OPocmMKg5H3 c X-Received: by 2002:a62:4586:: with SMTP id n6-v6mr39740377pfi.3.1540089591038; Sat, 20 Oct 2018 19:39:51 -0700 (PDT) X-Received: by 2002:a62:4586:: with SMTP id n6-v6mr39740352pfi.3.1540089590350; Sat, 20 Oct 2018 19:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540089590; cv=none; d=google.com; s=arc-20160816; b=lcxS+Ta9nJKfk7xQdwlY72VEmUYHWU9e7bAFt725xy6lAQrbMtRnWlk74msm2QxXBL JgYO0RxsnpsYRiE24Hi9HPj6NP28Xt3xhzBCHCf0lvG4+R2UiCECZIf1OXdQbEtN3kSP Iy7PevnFrPI89jFvnIwXrpGmDhvtqpa2sRC4MunCeOfiam0bJ7E9zjFp4n41C3PP3A8g ZPb8p2N/e/rLJDd4dtGOOYYMqMZ5YGTlgLjBBCAT8Ix+mV5OUxLJtonWRoEslN/wHBqC zJAvbkHgMfspIpAR29CYkqkoNEKYGE3EE19EanAxi8qM8/uWpEsNxF2pkijnekBAAJTa ZE6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=MEGeLN8LC/tnvru4r2bS6Yo1TdpJWDgqW7VRfFRA1Bo=; b=YlwWDW89EQ8vCC1BGAZz89K26sImlpDvPqGi3iyRHyRbymH4/ZGB+AYTk0dzIZqv0n sIgpiFpEYA0qft3IvpFSPHvov7vu/cM0cR5oBd6Jl4D0OSd+yDRwUGMZVo1cFYE0VFXv xgt1kn5k3BIS4uTaOo7AkYkMLy9yy1f0R990ZxAC2ap+XStqmqlpKAg84g662TDI4NLf 8Qvd648tadS005DYiuU5KcSbrVQ++VnXc/8y5IJK7jxKZSkxWkTod94weDdn2UKLfhAd zJ3WLGlRp2jVgGFJkI6TLZEIJjyVxOIqVR1AxvKTR3LL+z0Jo64aiD2mH+KFrGW0GfKU Wvkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=trDw0QFE; spf=pass (google.com: domain of richard.weiyang@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id e192-v6sor16621497pgc.33.2018.10.20.19.39.50 for (Google Transport Security); Sat, 20 Oct 2018 19:39:50 -0700 (PDT) Received-SPF: pass (google.com: domain of richard.weiyang@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=trDw0QFE; spf=pass (google.com: domain of richard.weiyang@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=MEGeLN8LC/tnvru4r2bS6Yo1TdpJWDgqW7VRfFRA1Bo=; b=trDw0QFECde11X9c3Zw5VBShjSigdNN1oR9JTIuS0ypdjkqlpGEijkuKpBmJz3iyog sB7sefb9ABHSyyZcscqO+1oZeT3VCZXcXyiO+YzoB25CerTOrX8Os/8Bp6Ty1Mz8EVD4 a1+lAkrzcFzw2ICXIG1cZv+2cnqsaFR9s0kjJ9ZootHB542rdovQYS2uvSqryTdebr3p +itNkdjGAZEiwX62jKh3TeLRK6iWNKP3W7gX+Ee34ykmSL9M7K0LsMQU2rpoH8a3z6lK oDK3Xsoea/iZlElZKRBecXCK+teJ49/ZzevHnryK6P/7we13+zcimPHq2t1vD1Hyi6D9 iF7g== X-Google-Smtp-Source: ACcGV61rcFJd6cFqyHhc4mmbe7jwtMTC4/DwbLn22hZjN8qKbjcMNN+nB4z9hgnSlipaVNswSJyMPg== X-Received: by 2002:a63:4c4e:: with SMTP id m14-v6mr38405911pgl.173.1540089589509; Sat, 20 Oct 2018 19:39:49 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id d126-v6sm39823632pgc.32.2018.10.20.19.39.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Oct 2018 19:39:48 -0700 (PDT) From: Wei Yang To: akpm@linux-foundation.org, mhocko@suse.com Cc: linux-mm@kvack.org, Wei Yang Subject: [PATCH] mm: remove reset of pcp->counter in pageset_init() Date: Sun, 21 Oct 2018 10:39:20 +0800 Message-Id: <20181021023920.5501-1-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.15.1 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP per_cpu_pageset is cleared by memset, it is not necessary to reset it again. Signed-off-by: Wei Yang --- mm/page_alloc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 15ea511fb41c..730fadd9b639 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5647,7 +5647,6 @@ static void pageset_init(struct per_cpu_pageset *p) memset(p, 0, sizeof(*p)); pcp = &p->pcp; - pcp->count = 0; for (migratetype = 0; migratetype < MIGRATE_PCPTYPES; migratetype++) INIT_LIST_HEAD(&pcp->lists[migratetype]); }