Message ID | b1b488224117ed5e230478fee2d4c5536ee1fa45.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 7CDB1C7EE33 for <linux-mm@archiver.kernel.org>; Tue, 30 May 2023 15:50:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1591C90000E; Tue, 30 May 2023 11:50:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0DE3F900005; Tue, 30 May 2023 11:50:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EC22C90000E; Tue, 30 May 2023 11:50:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id D9FF5900005 for <linux-mm@kvack.org>; Tue, 30 May 2023 11:50:03 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 6E381AE11F for <linux-mm@kvack.org>; Tue, 30 May 2023 15:50:03 +0000 (UTC) X-FDA: 80847357486.09.80AB1AC Received: from esa2.hgst.iphmx.com (esa2.hgst.iphmx.com [68.232.143.124]) by imf18.hostedemail.com (Postfix) with ESMTP id 5DD841C0016 for <linux-mm@kvack.org>; Tue, 30 May 2023 15:50:01 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=wdc.com header.s=dkim.wdc.com header.b="dEBucN/0"; spf=pass (imf18.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"; dmarc=pass (policy=quarantine) header.from=wdc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1685461801; 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=nmPbEXS+MlTpk7DPeTJmCFg9pOUjJFv/4XmohKW+HK0=; b=JAXm93hzFrv4iIbqUDwx1OdYW1q0tWwiesStVXeX//kiR3ekJnt8rHHMM6e2FJVBZ7lYCK NnJAA/GQwLlIrotBQBmRtF9nhuZQ/2NvpU69e20Kpsm2fPQY3+nhtBnah7n6I3KxucJSeH 8/9Z26Ule/Otq/N5XCSzhW0cdm2sKSw= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1685461801; a=rsa-sha256; cv=none; b=WoiSX5xmVg2XuQuiSa1ZMem+TKd7BGKAMMOxHOBLJq8oDLk5hOTMMUQsqjVChOUiVTMJxO CLx/ybToIdWueSHhooNDUSWSM/8J0ZtQNWPUjW0CfZXEnIDtk32eb9wR7ZDsSmHJDtUnW5 9m7ubRR4nZZGShGm4xVNgNatgbXeyvc= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=wdc.com header.s=dkim.wdc.com header.b="dEBucN/0"; spf=pass (imf18.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"; dmarc=pass (policy=quarantine) header.from=wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1685461801; x=1716997801; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=l3onFYf+ZZCsjR7ISuwDOJFQGwH0Ly8JQt0dIZLYRR0=; b=dEBucN/0cctb6Mq25HyEgDFYnvQwLOF10S+hItWENORA/sFrdzGsgopS B7KGuanQmyoIcaXyb8fRRu5zLbD0MR5wSPNwjCtbjARO5ighib4NPHoaX E58y9RNwK9d3tzaOduCyiLy/4qVr7NPMXi82l4PtlCff9dpy+agdJoqCw UAwvaIRZ0wN/jiCfHWIIJ7aBHW/Zne5IvETQgx/jDqrBA0JbCMigit03m VOLUKTbAZZEQFfOza8jU1e05QaR/X/oYCG3K4GGscYnCF9bACSgyYpH31 QvwbZktqrX3u5jKQ75qsT6CNEZJWENnEM/OK38kPINiTjhF3pOSdqzEZp w==; X-IronPort-AV: E=Sophos;i="6.00,204,1681142400"; d="scan'208";a="336465975" 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:49:59 +0800 IronPort-SDR: WEOagx9RSqFVv5qweGTCav4rWiN5nJ2VkNu35LvZXqgqLAKqt7vo7vUcLZMPvRsgv4aZ/P4c9X wd0npFvPVmuZUOulYNtaJWkqV8ouymtW3ncUhZKld2UidRyAI5V5pmAmOtmHAn/7wNZumOGcqv l30YypnVmzgUpxp1gob4z60zq0C29tNfCpd22lNclIwuoldUDcyJkqEDFo9r1T+tRAytQu8Sxp /SrLUHf0kjMb3LOH8HmhsXTHHo0rn8xhiqsJ1UFg+cPUcXnMOG89lpuJMdALd9uUfohUhh5t9W VkU= 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:12 -0700 IronPort-SDR: ZMHPyde+x3oZg2TtUSRL/5p5WqVr/ZfKqvYwCZxUYP2qYQ91FJJt40KpHRQdugU8uEYsX/I3K/ I9FEFvtZk6Bs4sVviWPES8u2Sy6mkQSXkjcdYwONAcCuJSehDyyyLlFwpmPv+ibIXsEmu0GWG4 2Y8ns+RdUjXQlTNei1wm9AL/aSe4WsIWt+fbIYohfizzZXwI2DiTr8AG9+VlPVIh3eTqf/W2/A sFbZ+/LPFzOwaTFd1WGs1qMqHoly+Y7z8CXi9+Jw0hugo7ke60l0xnB9VSjPDyKn0GdZOBduyf BL8= 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:49:57 -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 10/20] zonefs: use __bio_add_page for adding single page to bio Date: Tue, 30 May 2023 08:49:13 -0700 Message-Id: <b1b488224117ed5e230478fee2d4c5536ee1fa45.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-Rspamd-Queue-Id: 5DD841C0016 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: xfte3uzmgak8bwc9qr3bw13f676o5qq7 X-HE-Tag: 1685461801-103684 X-HE-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b7Ys3Lhi5ichMMHC5m6KimKLYKjJ37XLKE0z8q1BkWPN28gsLzjY5ZxsL5HU8cz7spPL7qKHCwd40D1fusotSW0x9/6dBsZu7p74IYx66YQx9I8yA6fSdTiNM2pgNzcg9GpK4dWLygTQlBX/S3rrysNS6M/9SMGCMvTc2abSDv/RCLbf6A56gDvvtEiVXj4ie2IW4hvRQtl+DPat/cRnpq1EKaZG/4xYn+CPY9QYi1w0/SFM+OsxojZwxWo7GF3x2l6yoOuM56sY8DMnBy7ulub5ZTyxWlQjhFN+W5ipZKgve/MuFrXqHFSkF+jPqAfjXzD4g== 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/fs/zonefs/super.c b/fs/zonefs/super.c index 23b8b299c64e..9350221abfc5 100644 --- a/fs/zonefs/super.c +++ b/fs/zonefs/super.c @@ -1128,7 +1128,7 @@ static int zonefs_read_super(struct super_block *sb) bio_init(&bio, sb->s_bdev, &bio_vec, 1, REQ_OP_READ); bio.bi_iter.bi_sector = 0; - bio_add_page(&bio, page, PAGE_SIZE, 0); + __bio_add_page(&bio, page, PAGE_SIZE, 0); ret = submit_bio_wait(&bio); if (ret)