Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp184902ybj; Fri, 8 May 2020 09:18:15 -0700 (PDT) X-Google-Smtp-Source: APiQypIQf21FQairaakf7Oq00aGB929zSXVvMLP7hmFORbFMeoHoSPiWrEgRVXcrLguczBjB5Vfl X-Received: by 2002:a17:907:2142:: with SMTP id rk2mr2421976ejb.225.1588954695485; Fri, 08 May 2020 09:18:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588954695; cv=none; d=google.com; s=arc-20160816; b=Eqt6BcJVveN5eiRhbr6P08KAUc1gw2E/ySo/dd6frLTtOWDM7UKGzIDy+LOQdK15DZ Ki8u88llg1SEwx2Ieh8Wn/+lLLic9WuiDb+VKIO0av7Doia3qi3PiKDfBVN+uF5qw+Dr hLAPAA8kFPQBL7MVqssCKm1QO2WHEbohrdDdsK5p8lvB1AvjN66rZ7MImNHzaHg6evuN 35dqJvJDhP55XmxAA693lRmn8fU2xlneQMY6ImmloBCUYMlGQzLc82IfE+NJK2n0DeFF Ae7qMcteB6XDsZAWC+fjmDwp4ekMiNEEf2ESm++oNmLGnOKkWFZQTVnSA7hpaqluoeMt 4AJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=v95R0zjTgUANy896rAxmeWpttbECsK32wQlrntDvB9M=; b=XZTB7D31haLNJA87bWA7zcv4yfM/xEoagxiRD8eAWKEAWu2ijVlVEj8IKa8Zy1cjZV 2B3ers924pYuajwmgSHEerKp8o+LfwnNBI8Tr6crc2g7Q3UacoiTiokCYJHAMRRzFfDr 3lwvr7QKdxT/lG5Y6KNERMcGh9FCs9Ovpn8I0GW/tVuwDyaR2CpfCFobZuecMGkO0SJv XYKp28BrTLMwU8gRhW3jGSgccnbp5gRSZgtaoWhey6AwE+DAmStzPnEcbcOZYgXX9mpd AkueRtrU4Jx3aenfEEnqg7DjmegAaaL5qBNE26BUmzhvaW+QHXKaJev2U7+IP2Gm5ItC O1LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=p0ElUfR3; 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 m16si1230490edq.329.2020.05.08.09.17.52; Fri, 08 May 2020 09:18:15 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=p0ElUfR3; 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 S1728488AbgEHQP7 (ORCPT + 99 others); Fri, 8 May 2020 12:15:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727113AbgEHQPy (ORCPT ); Fri, 8 May 2020 12:15:54 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 724C0C061A0C; Fri, 8 May 2020 09:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=v95R0zjTgUANy896rAxmeWpttbECsK32wQlrntDvB9M=; b=p0ElUfR3gK1Rk5PmAzNROj0KqY c74p4QSvm4KdW68E1PC0gFs+KF+EO5SGozWG9ESk4gFf2HbF9XfXdh77qoEi3XzLs0Q43Xy9f26fv BAaig/pdUtmrY/BtkXTGeCDNxZjhpZcXPrh52CtE57IcvP5DedivWBwD/tMewiCvxZ50AfXIR2HP6 o7+ZJ1BiHyG6xf1CJfZP9+pZgfbtfB1+M9Ku/h/9GLXId/E1gM7ns2sEo65YxszlshCiIe+YNWoCD sKmSj/N22isoShI/24frjlLR2xgBEGCSYuD1u8yApU/BWCbrigPs9wWHe777HKrqy8m6Z1TP9tMUg QyuKblsg==; Received: from [2001:4bb8:180:9d3f:90d7:9df8:7cd:3504] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jX5f6-0004i4-Ek; Fri, 08 May 2020 16:15:45 +0000 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 08/15] zram: stop using ->queuedata Date: Fri, 8 May 2020 18:15:10 +0200 Message-Id: <20200508161517.252308-9-hch@lst.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200508161517.252308-1-hch@lst.de> References: <20200508161517.252308-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Christoph Hellwig --- drivers/block/zram/zram_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c index ebb234f36909c..e1a6c74c7a4ba 100644 --- a/drivers/block/zram/zram_drv.c +++ b/drivers/block/zram/zram_drv.c @@ -1593,7 +1593,7 @@ static void __zram_make_request(struct zram *zram, struct bio *bio) */ static blk_qc_t zram_make_request(struct request_queue *queue, struct bio *bio) { - struct zram *zram = queue->queuedata; + struct zram *zram = bio->bi_disk->private_data; if (!valid_io_request(zram, bio->bi_iter.bi_sector, bio->bi_iter.bi_size)) { @@ -1916,7 +1916,6 @@ static int zram_add(void) zram->disk->first_minor = device_id; zram->disk->fops = &zram_devops; zram->disk->queue = queue; - zram->disk->queue->queuedata = zram; zram->disk->private_data = zram; snprintf(zram->disk->disk_name, 16, "zram%d", device_id); -- 2.26.2