Message ID | 20230419140929.5924-10-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 53156C77B7C for <linux-mm@archiver.kernel.org>; Wed, 19 Apr 2023 14:10:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4A35E6B0078; Wed, 19 Apr 2023 10:10:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 42CCC900007; Wed, 19 Apr 2023 10:10:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1E2846B007D; Wed, 19 Apr 2023 10:10:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 0F0466B0078 for <linux-mm@kvack.org>; Wed, 19 Apr 2023 10:10:46 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id E19741402C5 for <linux-mm@kvack.org>; Wed, 19 Apr 2023 14:10:45 +0000 (UTC) X-FDA: 80698326450.07.A39B3C5 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by imf22.hostedemail.com (Postfix) with ESMTP id 20AD7C000A for <linux-mm@kvack.org>; Wed, 19 Apr 2023 14:10:43 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=none); spf=pass (imf22.hostedemail.com: domain of morbidrsa@gmail.com designates 209.85.221.53 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=1681913444; 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=XSziFxMRLlc78BEY3ZIcArKRUqB+ur0VzFu/o2eWTQg=; b=TvCStXTvTsa7LImSDbnSIPPFPa14rbkeS4HmLIXWccmCa71sIR60JpL9WF5cZgM1Fbs1hD YI+MKJ6r+UyP05JensapRUNZSd7Qd6XF8KNGfKzhndrWAsUXwBBTZfiB6seCKo5Lk7D19S 4eHT87lH26vp7YdwdBMIgc7tRjt8YRY= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=none); spf=pass (imf22.hostedemail.com: domain of morbidrsa@gmail.com designates 209.85.221.53 as permitted sender) smtp.mailfrom=morbidrsa@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1681913444; a=rsa-sha256; cv=none; b=qDsRwYTOo2wVpyarH9t2T+A05+r1ysSjgiwZE8AscVjvDXFko5Iqj50Hfs3ysAEIMab/V5 BzUtGzqqnMMn9+eLlaIskBdDE20F467dz+uRy7fhgrp02cYqWTU1yf6PyXy/wSkEBSodgT WYnW1o5AUnul6sIuqPaUvUx6I5/hGe0= Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-2fbb99cb297so1660355f8f.1 for <linux-mm@kvack.org>; Wed, 19 Apr 2023 07:10:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681913443; x=1684505443; 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=XSziFxMRLlc78BEY3ZIcArKRUqB+ur0VzFu/o2eWTQg=; b=TfFH0KF8GTX3XbNzOnZZN5pMc/YNzzDqoALrYfUIP3RKUPljTjlnaD155dzH52M9LO +Ao3KSuQtJIGEJS0VGNL9GM4NFRrx8jFzVtuI83zt1oDG3Fm7db6t+tLd5LPkemv+9Yo uVXXrWk+OssqiP+Jm4VsIiN3mDQVMr5iQE36QO20M3b/MHqawkEo6E7y8jpKf2uTjbyr dcJRrBf52BfFsCbbzQlLkbh41iwscYjAKyw3ecvD64Mamb/VwT33SWiKD31kYlvh33QT f1ebDSOqve4FTzrRxcdpye5ebrtMwhje7MRLVjBQ1odB6Hk95H7u7R66xRCYPbkhKLoa uTwg== X-Gm-Message-State: AAQBX9dFGxcnolyXcUL7x6lKnnvy19kq6GVAquGcYk2uCYnnrgKLc1ET t0ZirxI9fB5RZcqdIUchNuk= X-Google-Smtp-Source: AKy350ZNLghyp21Md4xzCnKC/CZ1jD7PS3tRxkpm7/A6UV4bbe7dKQsIepFwKTi5j5wXVP+SbzJYCg== X-Received: by 2002:a5d:6a45:0:b0:2d3:bde8:9ff with SMTP id t5-20020a5d6a45000000b002d3bde809ffmr4938443wrw.34.1681913442744; Wed, 19 Apr 2023 07:10:42 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Apr 2023 07:10:42 -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 09/19] btrfs: raid56: use __bio_add_page to add single page Date: Wed, 19 Apr 2023 16:09:19 +0200 Message-Id: <20230419140929.5924-10-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-Rspamd-Queue-Id: 20AD7C000A X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: 5wwndyqaq6nhameuoy4zc8i5ixedeewk X-HE-Tag: 1681913443-133754 X-HE-Meta: U2FsdGVkX1/G4zGCEzNU21EC3LIdkHz/DkpbktSdc3Ou8Lx5ipi7DrCM+P/r1Yq+5ecaDFNoyVUgREcIXGs0+AmgotOxgi9ArLk2T2as3hEuAunhAOgJU/AvEdsxAeYEAvrUNs4fpQvWzgSiuHo0FGQjziBoZtq0MRPU953i3TMRo7F7KE2dgTzhNI1lKsHA0owLmB3dojDVp+I6VbFFyLVFh9422YjME5z6gMmPzH40dFK5ssENqbYiOobnp20ztibPMehd6ZNmujwD4IlgtG8ibVN0VKqSEB1iGgEvYwy6q35+kBQKEezg1u43jiD/6HWZYREFLUrxdvcWb81fnDrDNVu31F4B7KvQ419zdZYeUa2QpgL+lkO2iewAGWUCU+N9mRmRZPB7bXqZzkzZZn7MeCy5CRG/9NQO/w6qZNzUUsh2K+gFgxiewXc9h+92O2NaIWBLHPJSQVIFJmejJKop1HtEtkwBeOzAVk6YPxMEKQj/nWxxJxiTQ4iRPT9KxLtuT3CphAOPdCyTyjcIwhleU2gF8WaRRKsGDpEQBwEKYSyiqAhVCIHuO+ew2O/TT3Pkn34u+Clndtd9GVoPYC3Byg+c4v/e4VIsgJPMnzcar/EmLXSUcpdrRuCVzPNJ6Ij8NKBH6jVfVTafPy1u3Ty7oscxGbKwxdVEuWEsNL6lWayVCVRZytWUT+xLvLkA4LnHJjKf0svETpPL59Inp0kHT5zg7XUmh0Wl5jy6RkBEKiC5vuBkPLOxoqdl0mWJHGiv3cod16UCuOIAHkcA1ac8gavtHumDRZZyUlYtnv6D5RcOoS254G0VyHZrOyEBI+muAReTBQh5BdxNNKPqdrd6uFAKXUzTl9ctePJJxl5AERjbAJ2JsJleMFHI0V2MCMNu97oarGmUsyMQOdSr9nQyNl5OaQggLwokD5kuBgC7jWXCJfoeSh2g9530qxfE8iV58ainu8TzPjiGm+J 0hVpWeQ+ RhJX3xiyKA1BD4GWV7HQ22hO8oUZAmoG4Xu3yII+U5b9c/oN+w7Qd3XfQ8b7+14F+3lt8wuxuKn/NP4CAB7qnObc967IRHtAF4rAEvwP0T+gRoOspqIpmiZtODFiV2FYPa8fL/3N4vIXgTVRv0w5v96O0pz0Ku9VI4SvF67/Eij6fxkZaHqdtskxQ1qAeHctk03KdSVWtRLj5Nm/HvEiSYntuioGyWdTPhLjgXPnryv1GKzDJaEQnqXfDw/6WSGVSPgrSJ+rHun2bhIwfYn85BuuOWrPBWJvE9KPZh9yP4dBt/g36ReXfO4XxiWlrvh2WGV+rqne+4oz9q0rxMlO0Mdlq3Vv5n+PGFsBLTMADaxQb/PahFiBFKqp9Y83OuaocX3geqKtb7EeqFKNAjjWj3L6Z7mweIPiRfyCIfqPb3tQkshV81sGL/gtM2jtEcJcA6ZiXaG0DyvtAnk3dHbRXeliQOpX6jZq6558zQqyvDCROsXzBnWZi1HJ7OdicFFzrlaHGYmCG/1pw3tJhFgupjObGST2uwH2fPVYHiqOF2QGQTzPely3hXm5zN0RVfEno8CrePGsuA+itC75bZGUeAhhj7UxWttljYITq 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/fs/btrfs/raid56.c b/fs/btrfs/raid56.c index 642828c1b299..c8173e003df6 100644 --- a/fs/btrfs/raid56.c +++ b/fs/btrfs/raid56.c @@ -1108,7 +1108,7 @@ static int rbio_add_io_sector(struct btrfs_raid_bio *rbio, bio->bi_iter.bi_sector = disk_start >> 9; bio->bi_private = rbio; - bio_add_page(bio, sector->page, sectorsize, sector->pgoff); + __bio_add_page(bio, sector->page, sectorsize, sector->pgoff); bio_list_add(bio_list, bio); return 0; }