Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp250018ybk; Sat, 9 May 2020 01:41:05 -0700 (PDT) X-Google-Smtp-Source: APiQypKYeP5d92UVNvCpZdtR0xaOlYhAjkOJkDf+wyFwblBfAWaw0lImQeyK9gJxXgKqwihaUuTC X-Received: by 2002:a17:906:3da:: with SMTP id c26mr5343377eja.290.1589013665447; Sat, 09 May 2020 01:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589013665; cv=none; d=google.com; s=arc-20160816; b=r3ti5ZtQRKqb6i7B2pzSQH3pOpSd/q0HNQQ/ld9NzCTIU3wWUA48Q7yAVJGoPbXR0G QMWEHRBXkGxWsMrSRlDO1w2lOHr+SwPDnYoPVJJPgJqkPvfBBK2/M1JIDr6tvupd+4aD usALeZ80Bzj5e1uA5WsYgAu4ybMwndDHuDHpyajOL3Q+gwaKGfMrgPj5tn+3+xiagBNK SQDqjbOOmDh+B6P4cq5QoJuqbh8UjaF2fC1opXZKSZwLBjigwSYCOmEujAv9/Vpo1DDA D302AgAKDxAPymqHymGUkq6k1iDJibVMwwyV/eGBxODLJ5NegKs+HCBLb5+jFsh3PifY bE7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=zfDPrh9E0gKYxd+R85pgqngOAtPwm2pTsdFK6Vs5Bgs=; b=hL9qXak+u+M9qWnRJne+D//pQi7EVhdIFPyQi03reb4s1kCzzQu7lJysFT4sIAyo1t qtcw2TJhCdphpVahWiouB7vpo9MmaG3s08Ftlzfy7O/Ivn5YjKzQr1/HWCAhcLNl6YQg YVaQtJ1fZho9TFJCFZHNli/5P5BLFctTjUthQZYH59Mj5DE7d86+x+Qy/8rTaVpR7rdv 1nVlfdKxsSlyqpfYYCUO/nSWtbvR/Z0XBGn91xazQDoHvccgbHiZHguV+P/dFpKAtQs0 yUg86r1XTX0utcODV46s63xL3waj5pyvT7+/x4fXASeUetdpFh4LOrurcNTVHgh3bd2A gFJA== 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 ga2si2538987ejb.210.2020.05.09.01.40.42; Sat, 09 May 2020 01:41:05 -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 S1727815AbgEIIiz (ORCPT + 99 others); Sat, 9 May 2020 04:38:55 -0400 Received: from verein.lst.de ([213.95.11.211]:56199 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725930AbgEIIiz (ORCPT ); Sat, 9 May 2020 04:38:55 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 2B31B68C7B; Sat, 9 May 2020 10:38:50 +0200 (CEST) Date: Sat, 9 May 2020 10:38:49 +0200 From: Christoph Hellwig To: Jens Axboe Cc: Jim Paris , Geoff Levand , Joshua Morris , Philip Kelleher , Minchan Kim , Nitin Gupta , Sergey Senozhatsky , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, linux-xtensa@linux-xtensa.org, drbd-dev@lists.linbit.com, linux-block@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-bcache@vger.kernel.org, linux-raid@vger.kernel.org, linux-nvdimm@lists.01.org Subject: [PATCH 09/15, =?utf-8?B?ZtGWeGVk?= =?utf-8?Q?=5D?= lightnvm: stop using ->queuedata Message-ID: <20200509083849.GA22173@lst.de> References: <20200508161517.252308-1-hch@lst.de> <20200508161517.252308-10-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200508161517.252308-10-hch@lst.de> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Christoph Hellwig --- fixed the compilation in the print_ppa arguments drivers/lightnvm/core.c | 1 - drivers/lightnvm/pblk-init.c | 2 +- drivers/lightnvm/pblk.h | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/core.c index db38a68abb6c0..85c5490cdfd2e 100644 --- a/drivers/lightnvm/core.c +++ b/drivers/lightnvm/core.c @@ -400,7 +400,6 @@ static int nvm_create_tgt(struct nvm_dev *dev, struct nvm_ioctl_create *create) } tdisk->private_data = targetdata; - tqueue->queuedata = targetdata; mdts = (dev->geo.csecs >> 9) * NVM_MAX_VLBA; if (dev->geo.mdts) { diff --git a/drivers/lightnvm/pblk-init.c b/drivers/lightnvm/pblk-init.c index 9a967a2e83dd7..bec904ec0f7c0 100644 --- a/drivers/lightnvm/pblk-init.c +++ b/drivers/lightnvm/pblk-init.c @@ -49,7 +49,7 @@ struct bio_set pblk_bio_set; static blk_qc_t pblk_make_rq(struct request_queue *q, struct bio *bio) { - struct pblk *pblk = q->queuedata; + struct pblk *pblk = bio->bi_disk->private_data; if (bio_op(bio) == REQ_OP_DISCARD) { pblk_discard(pblk, bio); diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h index 86ffa875bfe16..49718105bc0dc 100644 --- a/drivers/lightnvm/pblk.h +++ b/drivers/lightnvm/pblk.h @@ -1255,7 +1255,7 @@ static inline int pblk_boundary_ppa_checks(struct nvm_tgt_dev *tgt_dev, continue; } - print_ppa(tgt_dev->q->queuedata, ppa, "boundary", i); + print_ppa(tgt_dev->disk->q->private_data, ppa, "boundary", i); return 1; } -- 2.26.2