Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6723934imm; Tue, 24 Jul 2018 01:47:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdY2WCS2pKzT/fuas/MX2Mv015LcrrAhjZOr5rqSYIPrHEmgmgw16VDCnz8FBZ6dPPxuOoe X-Received: by 2002:a62:9c17:: with SMTP id f23-v6mr16838795pfe.209.1532422027159; Tue, 24 Jul 2018 01:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532422027; cv=none; d=google.com; s=arc-20160816; b=gFX+tr5YgYJdywnlsWtnVj2V1xaIgfSF6B2YxuFf9dhoEyNPWitxyX/5/5JGGHKKtr aV12yzZ/pTVCPxEyD/11PqZ1bpkXzneqpbX3P/fF+dZxF72/OP2uSD+pp+swxFB2+HDN f7+uJFeqphw5q12ztwGDyDvVJGKX87+NMNnY0gTpLxKpfERN+dAfxtDuutu7um9RNlyg A5Il7Uc5sR8BLihONr6Vv9ElSgzYqCeuxU7YB+bDteowgUHz7Fmf5toA4KlF+9TE/Rxr HzHnh7ReQOfQctMIIQkxTU4jzChzuTZAUcnYL5K4EP/rEpqagRDXOtpUBv7ejbSeV4Da WnlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :domainkey-signature:arc-authentication-results; bh=QLeduLcPNrC5ZBjgTEIVs81LnOH5L7XnOnVtusBnl+w=; b=iMwGb8KSW4H25AitvNu68wQkZSpCv4YAcLpv9pERC6e2i6Ae9ihOgs/yjsWpnOg0G4 Dpaueg1SV5plHTYN5L/BZFUn1D/ZhH13myaNijdcFf6oBTvtH8Wu7DLAgUjgx8nL6U46 2ERI+3WBQ24DzG3pdqRQXCizf+NmLcz9BmlfS9V1lfiDUn/BxkYknyyJ8t/uWMmyTgkN Y8DEp94ZrBEINK4gvR1Zh8XZWVnqAWFiV7l3BD7cKMKUfQZR+m7Ms3KIJlvKmrEufvNA +PFOkbCVtpl6wEpTn3BGzz6RqnrAEV2uJ0S4PaW6aY9+6rdphSDFs9UvzfLNZJfPG1gd F6wg== 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 e9-v6si9475213pgo.397.2018.07.24.01.46.52; Tue, 24 Jul 2018 01:47:07 -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 S2388222AbeGXJvZ (ORCPT + 99 others); Tue, 24 Jul 2018 05:51:25 -0400 Received: from sender-pp-092.zoho.com ([135.84.80.237]:25311 "EHLO sender-pp-092.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727070AbeGXJvZ (ORCPT ); Tue, 24 Jul 2018 05:51:25 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id; b=peO5eEQQNxo5DRgrdkgbDlqLwYR/rRvrUKA6uPJ1zc0anLOtMBZf3mbVZ7dI4PImb53xNENVW9Ox iKXTH6L19BwfYpcZhgPeZbun07OgeEewgqrNi9rjNJ+sgXtxD7rq Received: from YEHS1XR956R00D1.lenovo.com (123.120.61.139 [123.120.61.139]) by mx.zohomail.com with SMTPS id 1532421925666919.9876390822808; Tue, 24 Jul 2018 01:45:25 -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 0/5] Do not request a pointer kaddr when not required Date: Tue, 24 Jul 2018 16:45:05 +0800 Message-Id: <20180724084510.6104-1-yehs2007@zoho.com> X-Mailer: git-send-email 2.17.0.windows.1 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 and dax/super don't need to get kaddr from direct_access. Assigning NULL to kaddr to ->direct_access() is more straightforward and simple than offering a useless local pointer. So all direct_access() need to check the validity of second rank pointer kaddr for NULL assignment. If kaddr equals to NULL, it doesn't need to calculate its value. * This series are supplement to [PATCH v2 00/14]mm: Asynchronous + multithreaded memmap init for ZONE_DEVICE. [1] [1]: https://lkml.org/lkml/2018/7/16/828 Huaisheng Ye (5): libnvdimm, pmem: Allow a NULL-kaddr to ->direct_access() tools/testing/nvdimm: Allow a NULL-kaddr to ->direct_access() s390, dcssblk: Allow a NULL-kaddr to ->direct_access() filesystem-dax: Do not request a pointer kaddr when not required dax/super: Do not request a pointer kaddr when not required drivers/dax/super.c | 3 +-- drivers/nvdimm/pmem.c | 4 +++- drivers/s390/block/dcssblk.c | 3 ++- fs/dax.c | 3 +-- tools/testing/nvdimm/pmem-dax.c | 6 ++++-- 5 files changed, 11 insertions(+), 8 deletions(-) -- 1.8.3.1