Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2933952pxa; Tue, 18 Aug 2020 01:50:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJys2TbxkNKlSUcYLtxCmnn6Xp8TYjRcRJXbC+5pJ57YywCRv9MuyUSuAxSneZQ44QLPYa9g X-Received: by 2002:a17:906:c108:: with SMTP id do8mr19578115ejc.88.1597740632311; Tue, 18 Aug 2020 01:50:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597740632; cv=none; d=google.com; s=arc-20160816; b=I6qYLrjmpEmpuFrBqNkq0iRan/EzcPKope9Rql4tf2MQqwPP0W/j7fbMLEesH2Qg0a JgXa8r2enoJUEjyM+VKTo24M2VEMZLnoraIeTKcMpLy9VtVywDNOhb0HIp/SPnKzLmDc xgpy/hHfCo6pRqA0GXRr3CAJry5X8VYWXHfRNc+u9ymZ4gcMfeWh54jPh9wCVNDzjjcJ SCcYfVaadJjT60Tr+Pz2ML2HPPxxQdpEcNMQsBeYhDif+7Ivr/sC3njyiGmzLHdjOE/t qbsur7eCNeKpDyVpA3zU+AfUneH19BXX/NCcFW3+fv5aoh5/DnNRFkFYm/M/jMmi0+z4 8sHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=v+YxB8Hju40N3/4uGet85ktK1xJXIYh1eLYxpbFz4Ak=; b=qzuoZRThUXvKR+j2fWtbGNGfUdKcNPITBsjDnGgfRzm3JTRgj/UX5185PIeLvnt2TU 7869MskCPFeOiSsTM1kteHJKAeLpLs5lwMsv/kmx22dQfLIZw9OFUy3N2lFQh2n8Phnr eF69BjE0lFtOGImCAALIeD7UzSB5bjG3GzYNmCevuKXwk6o6IBZuCnP+IOet9lxAaJf/ zsgrZgZ1GFLqQcq6JZT2GJQNdrHABDjBfc1lK5x/nt9CXOFDRLls1ctMDbLapefuBbYp kBcWxeDuX9XLwMVbhYpP7HE7Anqx0CoQaa9nZAGOiNbEIyYkgBPiFseNMzNCRcIUbSNb DlgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l23si12578162ejq.620.2020.08.18.01.50.07; Tue, 18 Aug 2020 01:50:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726495AbgHRIqk (ORCPT + 99 others); Tue, 18 Aug 2020 04:46:40 -0400 Received: from mail.windriver.com ([147.11.1.11]:35639 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726145AbgHRIqj (ORCPT ); Tue, 18 Aug 2020 04:46:39 -0400 Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail.windriver.com (8.15.2/8.15.2) with ESMTPS id 07I8kSaT020265 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 18 Aug 2020 01:46:28 -0700 (PDT) Received: from pek-lpggp1.wrs.com (128.224.153.74) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.487.0; Tue, 18 Aug 2020 01:46:09 -0700 From: To: CC: , Subject: [PATCH] mm/memory.c: Replace vmf->vma with variable vma Date: Tue, 18 Aug 2020 16:46:07 +0800 Message-ID: <20200818084607.37616-1-yanfei.xu@windriver.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yanfei Xu The code has declared a vma_struct named vma which is assigned a value of vmf->vma. Thus, use variable vma directly here. Signed-off-by: Yanfei Xu --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory.c b/mm/memory.c index 9cc3d0dc816c..88f61b4f9638 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3454,7 +3454,7 @@ static vm_fault_t __do_fault(struct vm_fault *vmf) * # flush A, B to clear the writeback */ if (pmd_none(*vmf->pmd) && !vmf->prealloc_pte) { - vmf->prealloc_pte = pte_alloc_one(vmf->vma->vm_mm); + vmf->prealloc_pte = pte_alloc_one(vma->vm_mm); if (!vmf->prealloc_pte) return VM_FAULT_OOM; smp_wmb(); /* See comment in __pte_alloc() */ -- 2.18.2