Message ID | 20230419140929.5924-8-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 8281FC77B73 for <linux-mm@archiver.kernel.org>; Wed, 19 Apr 2023 14:10:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E9206900005; Wed, 19 Apr 2023 10:10:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DF0806B007B; Wed, 19 Apr 2023 10:10:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C1BB7900005; Wed, 19 Apr 2023 10:10:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id AED986B0078 for <linux-mm@kvack.org>; Wed, 19 Apr 2023 10:10:42 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 61E161A0197 for <linux-mm@kvack.org>; Wed, 19 Apr 2023 14:10:42 +0000 (UTC) X-FDA: 80698326324.07.29D3E4C Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by imf03.hostedemail.com (Postfix) with ESMTP id 62FBA20003 for <linux-mm@kvack.org>; Wed, 19 Apr 2023 14:10:40 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=none); spf=pass (imf03.hostedemail.com: domain of morbidrsa@gmail.com designates 209.85.128.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=1681913440; 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=F5xZASE6AX0FDAF9QaXMQYNUIt4BDoCJAIYtVfQg3gg=; b=GnvTAK8/3GQniplO27Pk13w7f8Thaaiy7whllXL+DGxUNybNhR0UCgTSiAGc22Us5SWV9Z cJ4WrfupeT1L2M6sD3i6J0e/7tItkYxKn2/QcLjTdtz16YdedzrBUjvqE/t292ifgHhw+z WpnQCJBA3zm4GLOaujjEIKO+0F0pKEs= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=none); spf=pass (imf03.hostedemail.com: domain of morbidrsa@gmail.com designates 209.85.128.46 as permitted sender) smtp.mailfrom=morbidrsa@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1681913440; a=rsa-sha256; cv=none; b=L5NskTamd2I9RWwVTr/bZngxHbokh3iCKfeIehRy+xKhYhzqIBs/Ylxcg5DLhxgr4CvGuR jDR64nCrbs4EMehQdNXhbGdC+RlWKFwksrq44BXnJLMQAOGVMcIiYoh5D+347Mpodhwr6i L0j8GGfG3VFnJ0GKH8l1/R88+hQMs6U= Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-3f18123d9f6so3363005e9.0 for <linux-mm@kvack.org>; Wed, 19 Apr 2023 07:10:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681913440; x=1684505440; 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=F5xZASE6AX0FDAF9QaXMQYNUIt4BDoCJAIYtVfQg3gg=; b=dUEOnipD6sSrApYDtZYJqAYABMLDdQ6B5BNHi9mWsow6LpxQ+3VTLRJA7Ph6wq8pte GzsklF3e33sOLZuFUg0LkSF8Mlt627qICqCLMMkvXiMKRyEEWJ5dd6P7BD5EODRwKPWU G2kBAe8r+vpATZwy0e3MefVp+wz3WKG3BZLAAxUUzHWDNIWIntcy+j+gfvvq1JLQCHhZ OQLKGtOqf4YLn5w1NVDB8VRn39YFJO4C7nWCqAu13Tv7MabPZtoRHjk7qPC16IS1Y34s cz+9xue8S+RhlSrwI0I4aKTb+oVqhv3wFcEAQXAQcv6Ko14d8ojv3B/CkPtDHBuWyRPt Gq3g== X-Gm-Message-State: AAQBX9csS27p/bWJnflq94w+Edl8+f9xAqA1YKjZS4SOoWM5tUgWCA+2 TOSYNWMrvqWLij9EiFgJafg= X-Google-Smtp-Source: AKy350b5HmMSxUjSF6do3ACzNk+y0AqqAyJ4H9Xhpj5FHnN7rtVrL4Qm/xE5kNgOgQjjoDpX1eOxug== X-Received: by 2002:a05:6000:11cb:b0:2f9:4fe9:74e7 with SMTP id i11-20020a05600011cb00b002f94fe974e7mr4966092wrx.70.1681913439747; Wed, 19 Apr 2023 07:10:39 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Apr 2023 07:10:39 -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 07/19] md: raid5: use __bio_add_page to add single page to new bio Date: Wed, 19 Apr 2023 16:09:17 +0200 Message-Id: <20230419140929.5924-8-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: 62FBA20003 X-Stat-Signature: cxhu5ogbt5mujdigu47bcbbbudezuawb X-HE-Tag: 1681913440-330458 X-HE-Meta: U2FsdGVkX18JK0YYeLku/ttVxFl9Q6I1hk54kb9Pn0G2PKUhp0lM1XURjex5jPPryzLdsLVKvSguL5KSJsi9BdrC8Xj8/jzcTBP8HYPC9gGQ+jb/OzwjWtppJsOtZxvd58C1mlhHxmE2eqqMk7fdrw/v56HuJHkaxwJfTSr6oLGgacZ8AM5aJQVqOamS9gp+EbjTyvM0PCEox9Ep8UTouH4Jz9hoBWhAj2i/4YpUMuUhG2xWexE2HkZx1vF5NiKdG5BsrIxEp11UqN4/1FPVAJ58edgI+itgwft4F3hbGbw14612LgeLMZ4s/Y0CmZlD/jLEsWJwWCqmR7p0pKlKPDHLBdUficjed18qz/FFvIt02TndLxU+ZSqRahCthNpwk0odcfG9ZiyOeRV0LvpqiiLrXo7iqPf3NDrtE8o88V8jg+KiUgcfVskWN5Y+0BXhrIUOmBYS8ItCe6p30uJXvyicwi5BI49QhcuRUXuOqO7KoIGDXObm2mgjLM4DmsrB2D8aWsCVEgp7z4z0T5Scn0MRJ9xvt9lwVTb8JS4C3JMxpo2Xg0CdstXuoNWIrdjHT/ZqVy1be2jToPJ+YnADbKi0RYtDbjp/HgHx1pvnqR/YqR5xS9upU7qh/fRJnsNhHBNG6HWe3zG7ypowcuG2SSytSypGNcMLEd5fzhJ4wh58bU8ZLVGh37dzfsvPecsTxhJDVnCvMeeQxOZVvO5cVM00e3fYGroyswWvbkJ7tZHJmEqj8Xk8ys1J+0ENo5SpvQe7kFlCruc4sZ7Qu615dRVrK4d9ddD0aBPUNdMgEi5XTHTgjXAxY5sTUc7F7oy3R7iJai9MnM+rtVtl5g7YDUo5O4gq84XCuhGDAu9U+WwLZJnoM3qvG9NUu8nl90bnJ+O34UoE0l11ECgjvrRwX5AJYT5ExsVKE5tZFwc1LO5Wqn9GtVzf4+M6zYAXboKTIsEBswqIStPpzNwexd8 maEzJk7a DkgmT1H96Byixd9WR2AEi9wOg4UyUP3B1zd4CLIiAi5esNIs8o6kRwMx/X2BxfDWnwMZkBUmSlNvGm7N7NxKsMhT8hlYwS0pV++vbcA5EZEUe60SyQTU0CesyvlpNVZ9AmYdNOp3iKY/TvCd8l7R2ZOLQy2Q4AgFpkyFLudhk8jAgpwWIKhBd7/LEMtVKNYo4juY41m3QzeowiksVzsu8rRfdD2kIhOtzR1tU3Zd6wnYMyX4RkA/Xpw2+Mc/O5isICNTaz22fME98m+4qaDSxy7dUhvExIoknk/mO/3dewmm+CT5Q7ra8XrQ6Dnuz0bEQO23mnDTVg7qVQxg1owBZOx101oKgowsUhjWKBHlN1X6PvPv1i2j4jAngnlVUPVm3/ial0eugG2saOyPbPkKL3nhAl4TJ6tnSDClnDoOl0cf7vF8QqcAGIAP4sR9WeFkn0He597vThJeV9KybhuqH/eSM2Y26f/5nSBopu3UdeD+PGCLqrFQ5ZroHkdVDIJ0UxnrbTDJv501QdRn65w1++XXsz5cXvhzq5rRCL1EbZWXzXZ7dTMpwfuVKDrL6IlX9YVnMZv4BAr4yrERZuT41RHl6DfDqBsSCNeOqUQNADge9VTzkUOl/FzA1TeaVMLUArpFH 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/md/raid5-ppl.c b/drivers/md/raid5-ppl.c index e495939bb3e0..eaea57aee602 100644 --- a/drivers/md/raid5-ppl.c +++ b/drivers/md/raid5-ppl.c @@ -465,7 +465,7 @@ static void ppl_submit_iounit(struct ppl_io_unit *io) bio->bi_end_io = ppl_log_endio; bio->bi_iter.bi_sector = log->next_io_sector; - bio_add_page(bio, io->header_page, PAGE_SIZE, 0); + __bio_add_page(bio, io->header_page, PAGE_SIZE, 0); pr_debug("%s: log->current_io_sector: %llu\n", __func__, (unsigned long long)log->next_io_sector); @@ -496,7 +496,7 @@ static void ppl_submit_iounit(struct ppl_io_unit *io) prev->bi_opf, GFP_NOIO, &ppl_conf->bs); bio->bi_iter.bi_sector = bio_end_sector(prev); - bio_add_page(bio, sh->ppl_page, PAGE_SIZE, 0); + __bio_add_page(bio, sh->ppl_page, PAGE_SIZE, 0); bio_chain(bio, prev); ppl_submit_iounit_bio(io, prev);