Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6724306imm; Tue, 24 Jul 2018 01:47:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeg5BdqFUctzNQfnseKiptc6hWXuDjuCgT6yUV4TQ2cV14svBW0mMjzXChrM7SIS36fcniH X-Received: by 2002:a62:954:: with SMTP id e81-v6mr16720374pfd.231.1532422057072; Tue, 24 Jul 2018 01:47:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532422057; cv=none; d=google.com; s=arc-20160816; b=Y4JDujYB+TcHcunARk74mCTAwzqcjZXvf9d9H2b1GI660cF0Mm0yqEV2D/EgpDPHSZ k25Thuho+ODYGJ4D8SXYBoxMcIbIqWFS4gKar+5zWvtco1b53HRiJMiHAml9j7/aOHzP bK2dPVS9r9LeT0s5HeS3VW4J70bQRPVPh+Q/1r1PxiPkzcddJ8F3+6+hLRsCFyQ/jVZF X27EEqG71NliylyBKQ5IZ5hL7dbei/2uDy1OuKM8jHkbCFTIXL3Uo4nYccNp1d3Wnwv5 6ROSRu58Ba6vzk8CDq42sXMwruEyXoDxl3DRlarHQ/EEhGUFiutUGl7FIDHdcJVziM13 Pt4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:domainkey-signature:arc-authentication-results; bh=UlZYkccAkv7UDIOEvnk0PKOhUm0Iw9BQWcEnnlrrpoU=; b=o7BXbleQtaWRWpAdoFlWQmBIMAxcueExctNbcXkcpI0LoZmOAlWgYoHVoXAFd/PT/Q XTtY5QVt9Lh5sb7Q6oxLdhNNvVb0q7PjUCuvwIip7/Cftw0EaR/rgSrp13AzoopPCbOl lVqrCUsTlhMYN3ivXrbU64hiTkl2VKhq15fRQv3OfvSqaal+d2jg+R8HJnbowXDfYsc2 f8rdU34fM+nTOMa6b0qg1GUuMOOSbuIUnI8HsvThL5THnVvO+q9ORmvsbFECf9u6othG UhPEZ4G5zBjNhv4OBImIzzEMn/gUKth0xdmA2lICVCTsLFXFLxEXWTrkrEfWyf0XruhY CZUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a7-v6si9875011plz.510.2018.07.24.01.47.22; Tue, 24 Jul 2018 01:47:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388395AbeGXJvo (ORCPT + 99 others); Tue, 24 Jul 2018 05:51:44 -0400 Received: from sender-pp-092.zoho.com ([135.84.80.237]:25333 "EHLO sender-pp-092.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388309AbeGXJvo (ORCPT ); Tue, 24 Jul 2018 05:51:44 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; b=ppEO6DBSnfNP4J/dFkH4obDeqZyuYFOLYZr71rHsEgVbUgoG17fkdiseJgWWyO4HIZPpLAer8hdd gTrjmQzvAEZLsgVp2KBdnbCKCoOWQSDIfzI2fUgioZ/DOHVd4t3D Received: from YEHS1XR956R00D1.lenovo.com (123.120.61.139 [123.120.61.139]) by mx.zohomail.com with SMTPS id 153242195170641.122805832657036; Tue, 24 Jul 2018 01:45:51 -0700 (PDT) From: Huaisheng Ye To: linux-nvdimm@lists.01.org, dan.j.williams@intel.com Cc: ross.zwisler@linux.intel.com, willy@infradead.org, vishal.l.verma@intel.com, dave.jiang@intel.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, viro@zeniv.linux.org.uk, martin.petersen@oracle.com, axboe@kernel.dk, gregkh@linuxfoundation.org, bart.vanassche@wdc.com, jack@suse.cz, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-fsdevel@vger.kernel.org, chengnt@lenovo.com, Huaisheng Ye Subject: [PATCH 4/5] filesystem-dax: Do not request a pointer kaddr when not required Date: Tue, 24 Jul 2018 16:45:09 +0800 Message-Id: <20180724084510.6104-5-yehs2007@zoho.com> X-Mailer: git-send-email 2.17.0.windows.1 In-Reply-To: <20180724084510.6104-1-yehs2007@zoho.com> References: <20180724084510.6104-1-yehs2007@zoho.com> X-ZohoMailClient: External Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Huaisheng Ye Some functions within fs/dax don't need to get pointer kaddr from direct_access. In support of allowing memmap initialization to run in the background elide requests for pointer kaddr when not required. Signed-off-by: Huaisheng Ye --- fs/dax.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/dax.c b/fs/dax.c index aaec72de..abdb9e2 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -870,7 +870,6 @@ static int dax_iomap_pfn(struct iomap *iomap, loff_t pos, size_t size, { const sector_t sector = dax_iomap_sector(iomap, pos); pgoff_t pgoff; - void *kaddr; int id, rc; long length; @@ -879,7 +878,7 @@ static int dax_iomap_pfn(struct iomap *iomap, loff_t pos, size_t size, return rc; id = dax_read_lock(); length = dax_direct_access(iomap->dax_dev, pgoff, PHYS_PFN(size), - &kaddr, pfnp); + NULL, pfnp); if (length < 0) { rc = length; goto out; -- 1.8.3.1