Message ID | 20230419140929.5924-3-jth@kernel.org (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 81188C77B73 for <linux-mm@archiver.kernel.org>; Wed, 19 Apr 2023 14:10:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 149206B0074; Wed, 19 Apr 2023 10:10:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0D2A1900003; Wed, 19 Apr 2023 10:10:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DF0C3900002; Wed, 19 Apr 2023 10:10:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id D12086B0074 for <linux-mm@kvack.org>; Wed, 19 Apr 2023 10:10:35 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 57AF51C634C for <linux-mm@kvack.org>; Wed, 19 Apr 2023 14:10:35 +0000 (UTC) X-FDA: 80698326030.17.F24EA52 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by imf19.hostedemail.com (Postfix) with ESMTP id 086151A0029 for <linux-mm@kvack.org>; Wed, 19 Apr 2023 14:10:32 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=none); spf=pass (imf19.hostedemail.com: domain of morbidrsa@gmail.com designates 209.85.221.46 as permitted sender) smtp.mailfrom=morbidrsa@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1681913433; 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; bh=orhZa1fQDVNg13Xf2hv14fXxJ7CL2ohR8GPEx9ozulE=; b=1k9/kvBPrjd8U6AKKHVIJsq7pFhMET0gcxeC2GfjuWvxcMkEkQ84mc6IvsOxAFR9mH7dis dd/WBadPXxO+fa0G4/uGsdDM5aEL8gwXsz+gNoSEnnatLMSwWc8Rk0SFwxCblSs9WMWStM kt3QJ04Y/uwmmkBCB2U+4GsbAI3J6Sg= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=none); spf=pass (imf19.hostedemail.com: domain of morbidrsa@gmail.com designates 209.85.221.46 as permitted sender) smtp.mailfrom=morbidrsa@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1681913433; a=rsa-sha256; cv=none; b=W2S+3JJABn0UviYoAW+donwyPeif2tPGz85k7YjqVTDcbD23ge4MzrY/A9EwXnFPDA2Qjb 7fNLPiMYtDNXx1pGMNKSOawJ+4RDCnh7J7QuH8Nv6CglPCItynU8dmQWyXhSWEMKAZY9df f0wQzVPmxXGTd3FaKSkUyqWo3ILZOEg= Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-2fa36231b1cso1714134f8f.2 for <linux-mm@kvack.org>; Wed, 19 Apr 2023 07:10:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681913431; x=1684505431; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=orhZa1fQDVNg13Xf2hv14fXxJ7CL2ohR8GPEx9ozulE=; b=UiL/+diNjZ77UAZ93uE7BupL1cqL6ICaFftVh9bB4gabtTG8N/04v5lTWo3kOONuWN rMQhKmBVVi/D/OGV23JppNfVijzcZaexeo0JDSFjQY0wiNo8OMj6lzoPfm3WI+DmshaM nccOkrDiqF+veWGAJa2cpW6hj8FUZNT18a64f9thEIW/HmrMTaN9TUggrulc8Q4Ck3yR EDqWQrkHf0wkm0Ovbe6i1ND0kx8u5n03SNIhIMvbUJXdcc4QHWhR7ONmC+2+3TFmvHaU W0YjWbqn20GeNgeF/iUek6JGwLrST88s+bu3niyjE85jA2Uz86F6o+J3LBwTwsbyTYBZ 9dcw== X-Gm-Message-State: AAQBX9csssfjVjtyjwSvq7Oo20IR1ajwVA9LvFAAvlA+pbsNWL2G8RIN 5eJxVTrmvGxNudP2P855DMk= X-Google-Smtp-Source: AKy350ZGnNvFCGHtOF5DkVkLZweQA6NX/MNorpPWAg7TznL+D24Y2XSpeMvyxjzCOqr7ZSOtL7zx4g== X-Received: by 2002:adf:e301:0:b0:2f7:e3aa:677a with SMTP id b1-20020adfe301000000b002f7e3aa677amr4994062wrj.46.1681913431422; Wed, 19 Apr 2023 07:10:31 -0700 (PDT) Received: from localhost.localdomain (aftr-62-216-205-204.dynamic.mnet-online.de. [62.216.205.204]) by smtp.googlemail.com with ESMTPSA id q17-20020a5d61d1000000b002faaa9a1721sm7612089wrv.58.2023.04.19.07.10.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Apr 2023 07:10:30 -0700 (PDT) From: Johannes Thumshirn <jth@kernel.org> To: axboe@kernel.dk Cc: johannes.thumshirn@wdc.com, agruenba@redhat.com, cluster-devel@redhat.com, damien.lemoal@wdc.com, dm-devel@redhat.com, dsterba@suse.com, hare@suse.de, hch@lst.de, jfs-discussion@lists.sourceforge.net, kch@nvidia.com, linux-block@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-raid@vger.kernel.org, ming.lei@redhat.com, rpeterso@redhat.com, shaggy@kernel.org, snitzer@kernel.org, song@kernel.org, willy@infradead.org, Damien Le Moal <damien.lemoal@opensource.wdc.com> Subject: [PATCH v3 02/19] drbd: use __bio_add_page to add page to bio Date: Wed, 19 Apr 2023 16:09:12 +0200 Message-Id: <20230419140929.5924-3-jth@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230419140929.5924-1-jth@kernel.org> References: <20230419140929.5924-1-jth@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 086151A0029 X-Stat-Signature: njaxtoziq3uieg6g6f46a6ebuioqufzb X-HE-Tag: 1681913432-542079 X-HE-Meta: U2FsdGVkX19NYwljBG8Q3LwWSttDZFjrm5bBzguwUnDIQAju/TFWirtZitn1AwC5ggKfObeEnb28/gHasQSGi8cnO8Wu5MQgtFibtIoFcnqhoLbG2NvIMKuoR/pkZNg3CTIMlbKz80gjAalIcqQC2bLLg9nUH1z/gl9sYEDCaIdnpEP2bBbsaIEP7S1G5fmbWWNqoJU4pYfHNKhEfmwfh3c0CIAYRXFa/AkiPJ7oAYqnsY7rEkiDBstzFqcGcntUkjqtPHIyCqVTANSfgrMkHGDQaWjC10FRUQxTwJs5JQpBGc+CGsxdUb0wAtpxw/RBRb5fiBXBVgHX0U0qjFxo/IFmD4eIDa2YhaVp/BzBTYeK036FmrKtDfqunTji81xZn7V7eHfyJ5vfAhsKIM5ejjfkFbUqs11ECa0Oref6ucyEOI5sjOp5P28xWFlTgUs/gevAEgUHpYycNDshj46IFWP4N1CO3+KZ9WxmFJYbS/LbDOg1QTnagIQydcPpJJygTBJbH+sS9Ha6q8rID2oVtrG4FLo3iZzPUdCdp6P1M5mpGZaqEvYPojIRWQgfYMju1S9Vdla9hNLVLwgcJbsfbEwIt+daBy9dIwqFbfMs9FVJnlUWby1iiVZlNABmfx+3YWaIaxlWmvyI7OO4vYk4t3ZgneILI8x1cIFMXY3yMJVE5YYFJegJ5h3HNXTz16H2pwjrdNcZ7+i4d1OkL1AS8IcOl40bEAuXK0tNhfRv1KBqJX+bWIbs+e8wVZCZlKWWOh9loPRAHfjbT5Roa+EmlIBSuS1Orc7OhvvbHie5A+SEXt2GZLNMIlOu5M8Mg5hoU3wZufBxKERTsafex1SKyJx+pToGMM7Dw70CvJbuGhXpp8YGMBseJsnJLgMewkfNQ7UbzBIMcjYWFBRqUpgZkMCd2g9oGKX82UWjFwXGj8m0/qjY3ZmSyoz5deRYpIe6Wnso4YlCR1nvKR6/3hH UQbfHMb4 08NBqm7mSBydCqUDYbZBWliIkeQhzJJsBm9vqByOTF4te9TT9bBHJ7hO0bUzMVa59SakpUOI8dPhUkr2OIMSf8w42EbaCxQyFXuFmOzLd16vPgF9CZOO2zcO8sAyDmhCrov93/XJwUmMMq/vBz7SswtoHXbN57R/Zt+WTQ5sFkrZhSHCBmLIARCy9vV6jUd3ynDpqja/AcIOzXER0Y4ui8e8EHXuQzS93pEmTCTFO9NSpvX8Dc7FchqEoTRHKa/T8RPHoSa18GtCOyMzBDV+Rm9ma8CHSglJAffkUtlTuqlE71Eck+wd5t33JVSz2EDU5pqlfSJQ5ikbyF6d4pTHjdJBs4rqvWPJDdWBwgyjGVvMv7sNFYMqlCIduI7RK/2sUR0rkOjwG4YNlyzirbUR2dylZTPAmzH9rhds0jYf2bV59BAZoL08+0VVN/gLrGJuvVgNVNkc3xoSesxApEINp8dwMwxM4V0ZCHlnzT6fE/GlGOP+5ebCZpJ6Y32cAbR9tKEBZTep/T3ixPrIRJM8nVu3xxMde73ZM8rnCyPTdzdfDFeVWJ5xA15DPwgBZCIiXuLexsRfvULnb1MqArhVDqVxF4lXit+qBnFnc 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
|
diff --git a/drivers/block/drbd/drbd_bitmap.c b/drivers/block/drbd/drbd_bitmap.c index 289876ffbc31..050154eb963d 100644 --- a/drivers/block/drbd/drbd_bitmap.c +++ b/drivers/block/drbd/drbd_bitmap.c @@ -1043,9 +1043,7 @@ static void bm_page_io_async(struct drbd_bm_aio_ctx *ctx, int page_nr) __must_ho bio = bio_alloc_bioset(device->ldev->md_bdev, 1, op, GFP_NOIO, &drbd_md_io_bio_set); bio->bi_iter.bi_sector = on_disk_sector; - /* bio_add_page of a single page to an empty bio will always succeed, - * according to api. Do we want to assert that? */ - bio_add_page(bio, page, len, 0); + __bio_add_page(bio, page, len, 0); bio->bi_private = ctx; bio->bi_end_io = drbd_bm_endio;