Message ID | 20200827190735.12752-1-rcampbell@nvidia.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=mJtQ=CF=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 39DD3913 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 27 Aug 2020 19:07:48 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id F300322CE3 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 27 Aug 2020 19:07:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="ljY2+3je" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F300322CE3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 1D5286B0003; Thu, 27 Aug 2020 15:07:47 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 183E56B0006; Thu, 27 Aug 2020 15:07:47 -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 073A88E0003; Thu, 27 Aug 2020 15:07:47 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0041.hostedemail.com [216.40.44.41]) by kanga.kvack.org (Postfix) with ESMTP id E0B546B0003 for <linux-mm@kvack.org>; Thu, 27 Aug 2020 15:07:46 -0400 (EDT) Received: from smtpin02.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 9257C824556B for <linux-mm@kvack.org>; Thu, 27 Aug 2020 19:07:46 +0000 (UTC) X-FDA: 77197282932.02.cause84_5b138cb2706f Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin02.hostedemail.com (Postfix) with ESMTP id 4FBA610097AA1 for <linux-mm@kvack.org>; Thu, 27 Aug 2020 19:07:46 +0000 (UTC) X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,rcampbell@nvidia.com,,RULES_HIT:30054:30064,0,RBL:216.228.121.65:@nvidia.com:.lbl8.mailshell.net-64.10.201.10 62.18.0.100;04yr9wnxuad4h4ya7s4zu4p8jsde6opmxmhniu79ixbn1yp45qj4syqb1ctyzj4.rn5i9urbhno6takuwx37uhsbhzrmotd364w4ao3gm4b4biieat5p49frfn93rdg.r-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:ft,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:22,LUA_SUMMARY:none X-HE-Tag: cause84_5b138cb2706f X-Filterd-Recvd-Size: 3251 Received: from hqnvemgate26.nvidia.com (hqnvemgate26.nvidia.com [216.228.121.65]) by imf23.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Thu, 27 Aug 2020 19:07:45 +0000 (UTC) Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id <B5f4804720000>; Thu, 27 Aug 2020 12:07:30 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 27 Aug 2020 12:07:44 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 27 Aug 2020 12:07:44 -0700 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 27 Aug 2020 19:07:44 +0000 Received: from hqnvemgw03.nvidia.com (10.124.88.68) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Thu, 27 Aug 2020 19:07:44 +0000 Received: from rcampbell-dev.nvidia.com (Not Verified[10.110.48.66]) by hqnvemgw03.nvidia.com with Trustwave SEG (v7,5,8,10121) id <B5f4804800000>; Thu, 27 Aug 2020 12:07:44 -0700 From: Ralph Campbell <rcampbell@nvidia.com> To: <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org> CC: Jerome Glisse <jglisse@redhat.com>, John Hubbard <jhubbard@nvidia.com>, Christoph Hellwig <hch@lst.de>, Jason Gunthorpe <jgg@nvidia.com>, Andrew Morton <akpm@linux-foundation.org>, Ralph Campbell <rcampbell@nvidia.com> Subject: [PATCH] mm/migrate: remove cpages-- in migrate_vma_finalize() Date: Thu, 27 Aug 2020 12:07:34 -0700 Message-ID: <20200827190735.12752-1-rcampbell@nvidia.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1598555250; bh=awbwyASLbtxTy+p22pc3l4aK1xu021e4G6SblCHI+0g=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-NVConfidentiality:Content-Transfer-Encoding: Content-Type; b=ljY2+3je4EroVqmCgZoKwHcalhm5yEcj7rQPPx1nCADDR52KoUWZg3TLrd+qJoYwT 9l/WHI0bRC21ZOv8ymmoUwz4EwXWnz1GMoBwgAXV0d1eprBJEOtNyfLs8SO0mdhHZH zbzkGKauJqekAxEImu5+y+Wps7gnyxZdNDoJ+bZ0JjCm7w1uB4k/zWUJGpuwwRXwk6 5XhtGInICZfCBvfc1vlnrDXuOoKqUN0dBkpq4fDPjihvr7DcSug5/dHlD6IRaXMUII b77Pig/yFYU4fNeAWt4z2SuzHw4abqPGMWoSvekPnikVPwoUqyvQxODTj8yOrRNw6O uQIdkomlt7+EA== X-Rspamd-Queue-Id: 4FBA610097AA1 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 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: <linux-mm.kvack.org> |
Series |
mm/migrate: remove cpages-- in migrate_vma_finalize()
|
expand
|
diff --git a/mm/migrate.c b/mm/migrate.c index 0b945c8031be..eb859f7a9811 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -3087,7 +3087,6 @@ void migrate_vma_finalize(struct migrate_vma *migrate) remove_migration_ptes(page, newpage, false); unlock_page(page); - migrate->cpages--; if (is_zone_device_page(page)) put_page(page);
The variable struct migrate_vma->cpages is only used in migrate_vma_setup(). There is no need to decrement it in migrate_vma_finalize() since it is never checked. Signed-off-by: Ralph Campbell <rcampbell@nvidia.com> --- This applies to linux-mm and is for Andrew Morton's tree. mm/migrate.c | 1 - 1 file changed, 1 deletion(-)