From patchwork Mon Feb 17 05:03:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 11385237 Return-Path: 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 D1241138D for ; Mon, 17 Feb 2020 05:04:31 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A895F2070B for ; Mon, 17 Feb 2020 05:04:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A895F2070B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id BBCE46B000A; Mon, 17 Feb 2020 00:04:30 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id B6C5A6B000C; Mon, 17 Feb 2020 00:04:30 -0500 (EST) 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 A84106B000D; Mon, 17 Feb 2020 00:04:30 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0048.hostedemail.com [216.40.44.48]) by kanga.kvack.org (Postfix) with ESMTP id 90B436B000A for ; Mon, 17 Feb 2020 00:04:30 -0500 (EST) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 35E738248047 for ; Mon, 17 Feb 2020 05:04:30 +0000 (UTC) X-FDA: 76498428300.25.touch84_7e9687baff20b X-Spam-Summary: 2,0,0,154d1edbb6f4bd31,d41d8cd98f00b204,anshuman.khandual@arm.com,::linux-kernel@vger.kernel.org:anshuman.khandual@arm.com:sudeep.dutt@intel.com:ashutosh.dixit@intel.com:arnd@arndb.de:gregkh@linuxfoundation.org:tglx@linutronix.de:kstewart@linuxfoundation.org:allison@lohutok.net:rfontana@redhat.com,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1261:1345:1359:1431:1437:1534:1541:1711:1730:1747:1777:1792:1963:2393:2559:2562:3138:3139:3140:3141:3142:3352:3865:3867:3870:4321:5007:6261:8634:10004:11026:11657:11658:11914:12043:12297:12555:12895:12986:13069:13255:13311:13357:14096:14181:14384:14394:14721:21080:21451:21627:21987:30054:30064,0,RBL:217.140.110.172:@arm.com:.lbl8.mailshell.net-62.2.0.100 64.100.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: touch84_7e9687baff20b X-Filterd-Recvd-Size: 2633 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf24.hostedemail.com (Postfix) with ESMTP for ; Mon, 17 Feb 2020 05:04:29 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 42DA9106F; Sun, 16 Feb 2020 21:04:29 -0800 (PST) Received: from p8cg001049571a15.blr.arm.com (p8cg001049571a15.blr.arm.com [10.162.16.95]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2A2293F703; Sun, 16 Feb 2020 21:04:25 -0800 (PST) From: Anshuman Khandual To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Anshuman Khandual , Sudeep Dutt , Ashutosh Dixit , Arnd Bergmann , Greg Kroah-Hartman , Thomas Gleixner , Kate Stewart , Allison Randal , Richard Fontana Subject: [PATCH 4/5] mm/vma: Replace all remaining open encodings with vma_set_anonymous() Date: Mon, 17 Feb 2020 10:33:52 +0530 Message-Id: <1581915833-21984-5-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1581915833-21984-1-git-send-email-anshuman.khandual@arm.com> References: <1581915833-21984-1-git-send-email-anshuman.khandual@arm.com> 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: This replaces all remaining open encodings with vma_set_anonymous(). Cc: Sudeep Dutt Cc: Ashutosh Dixit Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: Thomas Gleixner Cc: Kate Stewart Cc: Allison Randal Cc: Richard Fontana Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual --- drivers/misc/mic/scif/scif_mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/mic/scif/scif_mmap.c b/drivers/misc/mic/scif/scif_mmap.c index a151d416f39c..1f0dec5df994 100644 --- a/drivers/misc/mic/scif/scif_mmap.c +++ b/drivers/misc/mic/scif/scif_mmap.c @@ -580,7 +580,7 @@ static void scif_munmap(struct vm_area_struct *vma) * The kernel probably zeroes these out but we still want * to clean up our own mess just in case. */ - vma->vm_ops = NULL; + vma_set_anonymous(vma); vma->vm_private_data = NULL; kref_put(&vmapvt->ref, vma_pvt_release); scif_delete_vma(ep, vma);