Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp14874imm; Fri, 25 May 2018 15:02:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoRY73SU1fyheXArmVIGUd/wGonXaYUwFSRtXzG90T8fLcxUQugfltM7zOBPyL0/zctFhYp X-Received: by 2002:a62:6e88:: with SMTP id j130-v6mr4169895pfc.111.1527285754610; Fri, 25 May 2018 15:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527285754; cv=none; d=google.com; s=arc-20160816; b=blY6oVyfqa7C3uXYdSNr9MlLmY7PN/hn0wTPEMHWKWDVqm+oqM0KfcFjpNTAg/yZgw ahLwiHXKitXkNv5RxeV5SRv7ICfg7zGuu4EcmV00Yh2R4qrcd05l2Qv1j3Fj9DNZ0mw5 G6AG6q7UId4aDNSuMmCg23ul0Wp/cAxPJdKE1HlPeUGacOoTADs3I1u8iEGuY+BT050I k0U7VKnaoJC4MUPaR3+OM+gETXOc+o+MMBC9Jtn7D5nTrph+8mWUmzO6QcOyp5Nac66R 39+P+tqk5T+uII/9fa3nD5QQhA6tapKUwd5TvJ10Xm5FhX3qw0Gc3Q0VnkJ8KW5tEFWg 0PnQ== 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:arc-authentication-results; bh=IWu1lzEgpo5loHW4YSCxCR5mjG3eyIay5aPzdTc9V+g=; b=hC7+Ntal0zCOaN816BSYxIvg5AFx17LFRZWNifkt5xK8wLFdQCo7oM+Qj4plghP5Sl KEBdZb+Ck9Lw+9DdIyAF88RbINxzAsAz8zUkaZwv3tGF3gNzmBu3aUeTak7Lk09UDrld UHhSaYOw8YG8oVuPNOWTg2lHI9nnuSrM3ys/kkbHCnzHTo9Q3yWG99QYvE2+sUTT0gLI Olklb4fN5lb3OsxVNKb983NUyAWiCyTUboG8+BLsZu1ZflAqedT2sT1lmhQmm7co86kR h+nvBKR1XcahBAknK0m5V58f6u04/4sCMPkh+scKGgXUdI3wAEv+k8QyapppIZzkugln WJug== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 92-v6si24191700plc.452.2018.05.25.15.02.19; Fri, 25 May 2018 15:02:34 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030709AbeEYWBp (ORCPT + 99 others); Fri, 25 May 2018 18:01:45 -0400 Received: from mga18.intel.com ([134.134.136.126]:17942 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030610AbeEYWBD (ORCPT ); Fri, 25 May 2018 18:01:03 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 May 2018 15:01:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,441,1520924400"; d="scan'208";a="231900893" Received: from theros.lm.intel.com ([10.232.112.164]) by fmsmga006.fm.intel.com with ESMTP; 25 May 2018 15:01:01 -0700 From: Ross Zwisler To: Toshi Kani , Mike Snitzer , dm-devel@redhat.com Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org, Ross Zwisler , linux-xfs@vger.kernel.org Subject: [PATCH resend 7/7] dm-error: remove unnecessary direct_access() stub Date: Fri, 25 May 2018 16:00:55 -0600 Message-Id: <20180525220055.18920-8-ross.zwisler@linux.intel.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180525220055.18920-1-ross.zwisler@linux.intel.com> References: <20180525220055.18920-1-ross.zwisler@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This stub was added so that we could use dm-error with DM_TYPE_DAX_BIO_BASED mode devices. That mode and the transition issues associated with it no longer exist, so we can remove this dead code. Signed-off-by: Ross Zwisler --- drivers/md/dm-target.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/md/dm-target.c b/drivers/md/dm-target.c index 314d17ca6466..c4dbc15f7862 100644 --- a/drivers/md/dm-target.c +++ b/drivers/md/dm-target.c @@ -140,12 +140,6 @@ static void io_err_release_clone_rq(struct request *clone) { } -static long io_err_dax_direct_access(struct dm_target *ti, pgoff_t pgoff, - long nr_pages, void **kaddr, pfn_t *pfn) -{ - return -EIO; -} - static struct target_type error_target = { .name = "error", .version = {1, 5, 0}, @@ -155,7 +149,6 @@ static struct target_type error_target = { .map = io_err_map, .clone_and_map_rq = io_err_clone_and_map_rq, .release_clone_rq = io_err_release_clone_rq, - .direct_access = io_err_dax_direct_access, }; int __init dm_target_init(void) -- 2.14.3