From patchwork Tue Feb 27 12:10:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiufei Xue X-Patchwork-Id: 10245027 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5FE9A60362 for ; Tue, 27 Feb 2018 12:10:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FF6E2888A for ; Tue, 27 Feb 2018 12:10:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44B5C28897; Tue, 27 Feb 2018 12:10:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE78D28896 for ; Tue, 27 Feb 2018 12:10:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752705AbeB0MKo (ORCPT ); Tue, 27 Feb 2018 07:10:44 -0500 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:57878 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752309AbeB0MKn (ORCPT ); Tue, 27 Feb 2018 07:10:43 -0500 X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R111e4; CH=green; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e01422; MF=jiufei.xue@linux.alibaba.com; NM=1; PH=DS; RN=6; SR=0; TI=SMTPD_---0SybBxIZ_1519733422; Received: from ali-186590e05fa3.local(mailfrom:jiufei.xue@linux.alibaba.com fp:42.120.74.107) by smtp.aliyun-inc.com(127.0.0.1); Tue, 27 Feb 2018 20:10:23 +0800 From: Jiufei Xue Subject: [PATCH 4/4] block: fix a typo To: Christoph Hellwig , Shaohua Li , Jens Axboe Cc: linux-block , caspar@linux.alibaba.com, Joseph Qi References: <014d8f0c-31db-c18b-855e-5e425b9499be@linux.alibaba.com> Message-ID: <8c723675-5798-a25e-612e-4115938f39cc@linux.alibaba.com> Date: Tue, 27 Feb 2018 20:10:22 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <014d8f0c-31db-c18b-855e-5e425b9499be@linux.alibaba.com> Content-Language: en-US Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix a typo in pkt_start_recovery. Fixes: 74d46992e0d9 ("block: replace bi_bdev with a gendisk pointer and partitions index") Signed-off-by: Jiufei Xue Reviewed-by: Christoph Hellwig --- drivers/block/pktcdvd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 531a091..c61d20c 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c @@ -1122,7 +1122,7 @@ static int pkt_start_recovery(struct packet_data *pkt) pkt->sector = new_sector; bio_reset(pkt->bio); - bio_set_set(pkt->bio, pd->bdev); + bio_set_dev(pkt->bio, pd->bdev); bio_set_op_attrs(pkt->bio, REQ_OP_WRITE, 0); pkt->bio->bi_iter.bi_sector = new_sector; pkt->bio->bi_iter.bi_size = pkt->frames * CD_FRAMESIZE;