Message ID | 7e817bf13ca47fd863385997c0a9794221df7781.1685461490.git.johannes.thumshirn@wdc.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0EDBFC7EE33 for <linux-mm@archiver.kernel.org>; Tue, 30 May 2023 15:50:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CEED5900010; Tue, 30 May 2023 11:50:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C85C0900005; Tue, 30 May 2023 11:50:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AEE4E900011; Tue, 30 May 2023 11:50:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 95410900010 for <linux-mm@kvack.org>; Tue, 30 May 2023 11:50:09 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 6528C120270 for <linux-mm@kvack.org>; Tue, 30 May 2023 15:50:09 +0000 (UTC) X-FDA: 80847357738.04.B3F482D Received: from esa2.hgst.iphmx.com (esa2.hgst.iphmx.com [68.232.143.124]) by imf12.hostedemail.com (Postfix) with ESMTP id 3C26040005 for <linux-mm@kvack.org>; Tue, 30 May 2023 15:50:07 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=wdc.com header.s=dkim.wdc.com header.b=UEHU0tji; dmarc=pass (policy=quarantine) header.from=wdc.com; spf=pass (imf12.hostedemail.com: domain of "prvs=507b913ec=johannes.thumshirn@wdc.com" designates 68.232.143.124 as permitted sender) smtp.mailfrom="prvs=507b913ec=johannes.thumshirn@wdc.com" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1685461807; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=FSfLaZ0uUnz+itbfEoh9diG/Fo3AxNs8ZFZ3+lYsS3I=; b=msLuoW/QP0ZVkSZPUa5ZTG4LkGtWq63q3ph0LyjWADwzCfQySdnfhU2AfKWGZZGCkLDjok 09fBZ06Z+8QUlPA+Eq/DpwlmTpdtdWqA1HPu85srywPgxOn+SfZC9ZrREcrH9Ou/7yXtJ4 XxRjsxSyerPkKKDvr0gCerO2ZA5Jj98= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=wdc.com header.s=dkim.wdc.com header.b=UEHU0tji; dmarc=pass (policy=quarantine) header.from=wdc.com; spf=pass (imf12.hostedemail.com: domain of "prvs=507b913ec=johannes.thumshirn@wdc.com" designates 68.232.143.124 as permitted sender) smtp.mailfrom="prvs=507b913ec=johannes.thumshirn@wdc.com" ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1685461807; a=rsa-sha256; cv=none; b=Bkj6cu/tdAULA3r0nPwikeRKaSyFzh46vRUv4Yl4r+t8DAf49AmEPBnU35/8QOp5T8bt/b aBwnmwAeoB87+Q8ax/aIoVPhR7Q69PtwYKm5qvyzYZwYLCG3XwbgK1ynUuUhTXD5GAkWDj N08RFnEfZiQqy2FYn7LoHaLxe3+p65s= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1685461807; x=1716997807; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=feBhECdTKAjH9l6zrs2xmhiYw9k0zkjzEVMqz5jiOVc=; b=UEHU0tjiOYe6N1u1nx+GHmiZVXsBiR46AQhfcyuuokZ2hzd2Hr7Tg9F4 JQek+1qpFwiYGScUfPDt+EA33C7MuiCvvb91pkdr0eXbGHNXTIV61wK8M 8SMKGSzoRE8QGIPWhRBd1YhPCBhCdtGXoFLFu04NxCkSqcaoXFywMMvWe CBizvtIKVzoHxjXUOmaqmiOKQP/qBhW+wvSP2tri4ZoD9UBCbkYs8jnqA YYCWQNzB2AFJp5tHddh0go+EcjvpuaNPJx7ixlHk7/9cn1X/mP+GJfVjG P6uw7Jabwm8BlILxNX+Jjp5W5K7W+EDLO1C1ZDaVsBa8S50c9GBLGD7B+ w==; X-IronPort-AV: E=Sophos;i="6.00,204,1681142400"; d="scan'208";a="336465992" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 30 May 2023 23:50:06 +0800 IronPort-SDR: fnqMBZCW5eclS0g3Q+YpID3dd6sZzBEbKVCKZHqomFHMI9UklNbI4KvJ+4pDTYPZK1Wsj4VRAm TBTdWE1dudNchPB8sHbYLf0Wb3a54yCXH5LfgXgKfkaLkR7vaE/Ni/79MRmZiy4OwOkzKtLLz9 jHXSyUeOnZXA5FaW/izHaFrBLQvo/rl9k2ntF4m78xUQA0aHkupwd2CIcIEQAjFnCtrGmXCWSP Ly8dNR76D2vnHEZ9c+umOcqfApxlYOtb+opCW79PQARIjIY37i9ckKBudIydhlSybJHNxSeRPM Zlo= Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 30 May 2023 07:59:18 -0700 IronPort-SDR: EhH4NXigyhjdlA+o9IGwq9toIdfLXKwjqpigNPLms4HX2ZY0xdq+HGjMqjM/LXPE0H0lh+M4yV XOUH1WqeeUTQLRM43o4YQyLZh/QIjvwzVGZbVmNMXHvT5n2wQIzYOdHngHeSW32GE9fp8AeZ38 O7IBIim14OZkdwKoUagjTCGpbHBhvSrPULKGTbznjjKuwsGFp7K4CnPG+U/LPiXHGWkqFNNUNH jUB2k76eBdmfrU2hEjhb4tbcKZs+3fgO9fPe2xuInJzHIOQ0mXkmAO0bd7p4K36l0YuHQ9uRO9 U7A= WDCIronportException: Internal Received: from unknown (HELO redsun91.ssa.fujisawa.hgst.com) ([10.149.66.6]) by uls-op-cesaip02.wdc.com with ESMTP; 30 May 2023 08:50:03 -0700 From: Johannes Thumshirn <johannes.thumshirn@wdc.com> To: Jens Axboe <axboe@kernel.dk> Cc: Christoph Hellwig <hch@lst.de>, Hannes Reinecke <hare@suse.de>, Chaitanya Kulkarni <kch@nvidia.com>, Damien Le Moal <damien.lemoal@wdc.com>, Ming Lei <ming.lei@redhat.com>, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, dm-devel@redhat.com, Song Liu <song@kernel.org>, linux-raid@vger.kernel.org, Mike Snitzer <snitzer@kernel.org>, Matthew Wilcox <willy@infradead.org>, Dave Kleikamp <shaggy@kernel.org>, jfs-discussion@lists.sourceforge.net, cluster-devel@redhat.com, Bob Peterson <rpeterso@redhat.com>, Andreas Gruenbacher <agruenba@redhat.com>, Mikulas Patocka <mpatocka@redhat.com>, gouhao@uniontech.com, Johannes Thumshirn <johannes.thumshirn@wdc.com>, Damien Le Moal <damien.lemoal@opensource.wdc.com> Subject: [PATCH v6 12/20] floppy: use __bio_add_page for adding single page to bio Date: Tue, 30 May 2023 08:49:15 -0700 Message-Id: <7e817bf13ca47fd863385997c0a9794221df7781.1685461490.git.johannes.thumshirn@wdc.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <cover.1685461490.git.johannes.thumshirn@wdc.com> References: <cover.1685461490.git.johannes.thumshirn@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Stat-Signature: y3um5mwp1o97dy8c1d51bysocra4nmac X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 3C26040005 X-HE-Tag: 1685461807-895488 X-HE-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/+DqI09TAEZnz2tjMroH1R0UKWM+0cg4rKgFtWoHGKheHkpBcfoCQGCNBitDUJ3vDv2ak7ioEo88Bn4eVErfzzEFyAYPQdhnXBdDLt4/LjjU3mVDxcDZPxseLm//LcvQMy+rTh+34GsrUAbdcslT3EpzCFHlaa8FSzAlbOshggLDkqmEVUcmL2Yxzw/RU7xwvbZ/+ZmMBNzVPMUnQW9iRL2gb2KzdnEdInf1F7yeQOJZicEgDkWmqqOVJE/x7ce55TzRr1c9c93lzrGglntdK/T7M5j+NWONUFRodQ5UujtLrddxGsT1ui5yU3AA059CI1/v9Q== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
bio: check return values of bio_add_page
|
expand
|
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index cec2c20f5e59..28ec6b442e9c 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c @@ -4147,7 +4147,7 @@ static int __floppy_read_block_0(struct block_device *bdev, int drive) cbdata.drive = drive; bio_init(&bio, bdev, &bio_vec, 1, REQ_OP_READ); - bio_add_page(&bio, page, block_size(bdev), 0); + __bio_add_page(&bio, page, block_size(bdev), 0); bio.bi_iter.bi_sector = 0; bio.bi_flags |= (1 << BIO_QUIET);