Message ID | 381360a45ac3684120cfbe1e07685e9c36256e47.1685532726.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 2F50BC77B73 for <linux-mm@archiver.kernel.org>; Wed, 31 May 2023 11:51:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C3D8D6B009E; Wed, 31 May 2023 07:51:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BC4596B009F; Wed, 31 May 2023 07:51:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A8BE58E0002; Wed, 31 May 2023 07:51:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 98E226B009E for <linux-mm@kvack.org>; Wed, 31 May 2023 07:51:57 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 788B814011F for <linux-mm@kvack.org>; Wed, 31 May 2023 11:51:57 +0000 (UTC) X-FDA: 80850386274.16.A04CC4A Received: from esa5.hgst.iphmx.com (esa5.hgst.iphmx.com [216.71.153.144]) by imf20.hostedemail.com (Postfix) with ESMTP id 79C301C0014 for <linux-mm@kvack.org>; Wed, 31 May 2023 11:51:55 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=wdc.com header.s=dkim.wdc.com header.b=qDvyau2Y; spf=pass (imf20.hostedemail.com: domain of "prvs=508ef2a02=johannes.thumshirn@wdc.com" designates 216.71.153.144 as permitted sender) smtp.mailfrom="prvs=508ef2a02=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=1685533915; 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=6L0r6L5WYBy6S5nxfnPMsigOf27hWxRb+7ozzJcAxf8=; b=V9EZrP9i94Ji8SJXFzhkQrMZdPJtzM7MlonMmt12J24xa6Scj2CPJGP5FTLL0dWJhZdoHZ z+uUhPQ5f6rGnxPPq0cgeFtKPINNljs6tSXTW/ltTwbTiiIMYaosBNwx2g6I7z8WWATdWz T3d5schITk8LEAoPBZjOnFUP2hjiAMk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1685533915; a=rsa-sha256; cv=none; b=exkHn+NOhPy2uqMvdjKKpoBjjtJPsfMMWn3Ca6PnCfdby7/81Ue2oycC+Z2PSGmT2AgmwU nToGo1+LTXi2teyi7RmHmJBKKWM4OnGaZvvBq5nQZy5qqhfvTOaYVOHBG67ZKLHR03DTRo PKS0Qeww/Rt+fhxLb4gTYjLf0tLSq10= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=wdc.com header.s=dkim.wdc.com header.b=qDvyau2Y; spf=pass (imf20.hostedemail.com: domain of "prvs=508ef2a02=johannes.thumshirn@wdc.com" designates 216.71.153.144 as permitted sender) smtp.mailfrom="prvs=508ef2a02=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=1685533915; x=1717069915; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TXHm8cKgeXSbycf6VjVIJnX8HwRGv+9KYRMuHSdcMO8=; b=qDvyau2Y8cQH/QuT420h1TDuS/cJSsOfXHnpu0FKhGLexb5yOT4qj9Su xBOoyE//AHpue1D5e61+IyPcO2ON8uS4SXpJpJRw5CqNiDsODjcL/5Hui zUY+YN5ijGoTZIPjQg5sdF6pjVoEksiIEjGaAPS/9vgT+MYqhlmGRtl5z nlqPXZwWObcXiH2T6M/JbC5xFYcYkMXB1LVkN/ws5MOZcoV72EBdDS9mb t7ko2VTB1IBqlmSP4+I9fYE26D+gnRNIodoUBylhz7SdfgFqyR/BH1YKu 8rDYjRPmVnenZcbN2J32W/cpcHqFVEuw/gftO64qnExkv8EsdyUR+hTqF g==; X-IronPort-AV: E=Sophos;i="6.00,207,1681142400"; d="scan'208";a="231985169" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 31 May 2023 19:51:54 +0800 IronPort-SDR: nMhOpxenn3CR8Uf3EOX9Cg+B0sNK0RNvqsza1jlvoUDzsSWTZ4Ja5Rx3tqfnhte0mG7I26U2OT mV/m2WBWXpQbAXwxJVpUjsmswbGa3C0JNVkbDFqt0x17NXtmgGORoHMTR/XOdmVApeNvf7f1vM H61wM76ckEhGvM3y9rOFgJTUGXBjl+sb9FHoU2AfswPvQEYTrN4GozwmQmcEDGX5R5MEa7OjUD ahLD2o8eX5sscsGMc3zrSjzcPtCnWd94V1TI50tVyOj1giuu0H3Gww+bsWFHY45ladiJLXp7qi rko= Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 31 May 2023 04:06:46 -0700 IronPort-SDR: K8DGvXh3flLPynticzqNOEK+cYmmrpCanEBz66JFrWIngUtekJYSQhCrCrQqqhG+xCFaPCQa2f kPJSf1LI5UoWCk4clEw/qwVZ0W4JIS0jS8S+dvN+TLf0ZfYCIO+3Xte4UP0xRPIscBgFVDQ2Kd i0oECfF+1dh8ufMGv5dV011PahNQRw/rJMUEPkg/QmDHoXKUFcS063SfGvdOMAWACqKfwoUrw7 ZHc2iWsZBS8kDjkwhUtPmAIWhJo/MvPANH9LDUtKSOoqChVFdvi5WpUhFTDcEYLLYC3pqPKsMY Ipk= WDCIronportException: Internal Received: from unknown (HELO redsun91.ssa.fujisawa.hgst.com) ([10.149.66.6]) by uls-op-cesaip02.wdc.com with ESMTP; 31 May 2023 04:51:50 -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>, gouha7@uniontech.com, Johannes Thumshirn <johannes.thumshirn@wdc.com> Subject: [PATCH v7 20/20] block: mark bio_add_folio as __must_check Date: Wed, 31 May 2023 04:50:43 -0700 Message-Id: <381360a45ac3684120cfbe1e07685e9c36256e47.1685532726.git.johannes.thumshirn@wdc.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <cover.1685532726.git.johannes.thumshirn@wdc.com> References: <cover.1685532726.git.johannes.thumshirn@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 79C301C0014 X-Rspam-User: X-Stat-Signature: ideeobz99opwaatrbrdefywh6ca1ecnm X-Rspamd-Server: rspam03 X-HE-Tag: 1685533915-85208 X-HE-Meta: U2FsdGVkX185ePfIc81znZ4hUlcKsOgjUk7nAV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ZwtxB8uvEamg0s8tJFG3anPkKLep5MkFn9NorpdEYFAMvZCVSp/tokYpVR7u1JtG+6ttgKHLoWGHa0EDSQgUSiXVDkrWpQ2YyXDHRFxASbqlgt/Hr6GtIC+lg9gAmSrWQqy1KCqrmDtZjiLUlpI2NIhzaK5jtEN95uCDMl2lItM5+GDjGyK6v1AJXSQ2RHMA3z9LpihpmV9o9f1M+8vwAnzz5EET9HopbwGXfWlqyqWbyL6ob4nvj59y3blms+fBc3Dc5dBa4ISs+VGJnamSoT8gko1D1U9exxX+4tMkDUcMMgT4Bm3U5/Q2aKb2ygwR/oQCq1QtjOUHDRDhQZLzV+QmWLpUiPc= 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/include/linux/bio.h b/include/linux/bio.h index f907d75af205..c7a9425d19ee 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -467,7 +467,8 @@ void bio_chain(struct bio *, struct bio *); int __must_check bio_add_page(struct bio *bio, struct page *page, unsigned len, unsigned off); -bool bio_add_folio(struct bio *, struct folio *, size_t len, size_t off); +bool __must_check bio_add_folio(struct bio *bio, struct folio *folio, + size_t len, size_t off); extern int bio_add_pc_page(struct request_queue *, struct bio *, struct page *, unsigned int, unsigned int); int bio_add_zone_append_page(struct bio *bio, struct page *page,