Message ID | 20230419140929.5924-11-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 3493AC7EE22 for <linux-mm@archiver.kernel.org>; Wed, 19 Apr 2023 14:10:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D3112900008; Wed, 19 Apr 2023 10:10:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C6A3D900007; Wed, 19 Apr 2023 10:10:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A477E900008; Wed, 19 Apr 2023 10:10:47 -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 8F2EE900007 for <linux-mm@kvack.org>; Wed, 19 Apr 2023 10:10:47 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 64215AC0B6 for <linux-mm@kvack.org>; Wed, 19 Apr 2023 14:10:47 +0000 (UTC) X-FDA: 80698326534.21.1E88F52 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by imf10.hostedemail.com (Postfix) with ESMTP id 5F06AC002D for <linux-mm@kvack.org>; Wed, 19 Apr 2023 14:10:45 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=none); spf=pass (imf10.hostedemail.com: domain of morbidrsa@gmail.com designates 209.85.221.43 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=1681913445; 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=CtDbz8KQ5RO2QKOv20A9cNZoc5bLawdSeLMzRI4Z4l0=; b=XbUG5RC6Uj0HZOe75v7+X6dP0gtrO8AlyjhnpPWutVwJxVwIGoFWjrHBOaUU5VgrbIFzDn Gl2F8Qaz0WuYdm7ndLwA0/9p6m1JtpkYyO9pcrnCIZUz21dIT/m/0QZCH6owq59tPeJHKc S9LMhgI+lO8Qr20XYQVFNKPgkRmcrms= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=none); spf=pass (imf10.hostedemail.com: domain of morbidrsa@gmail.com designates 209.85.221.43 as permitted sender) smtp.mailfrom=morbidrsa@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1681913445; a=rsa-sha256; cv=none; b=QykQnOdlmdOR7mFLc5Wm+GZOiEuc/kWfQsnGps1RTDVbxIwj8NZZUHdltLF0ejnT4luaoi CISVjL+fPqj/n+MIgk9cDRdbGMqASIpI9zYdNoRBXlGwvRikf/fAvf0oxRS/fFtBL4SvAn NwFFOBTdk1QYW0+5+IWsEB4zqfNL9KA= Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-2f62b1385e3so2059944f8f.2 for <linux-mm@kvack.org>; Wed, 19 Apr 2023 07:10:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681913444; x=1684505444; 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=CtDbz8KQ5RO2QKOv20A9cNZoc5bLawdSeLMzRI4Z4l0=; b=gioPuJgoatNoscnYo2WoRY5bPzz7Jn/bJawQvyAlrfSXy1hUxvqf71HE+OcAXMxdbg jNvCnnLDPw8EONuV64E7wI3cwJ6z3Fs+wswRP6NE0dCVVEAJkc+eX2kse3B9W0qQgHKX aSPVSxr7OfwSVPDf7Q0DXZRgShisng0WCMFe6g6T2BDZWXd+srUdXAucwUVvrKQGKLbP dMeNPX5km7RaumMWX6t7y+PVf/THz+WAmfc7kZO/eYeR3IH4sgmCmx39bGMMQMW1sXYT Yzt75czV2Zx1zAr9vdaDgPX9e7ioG9GmLJNFi/4skpOOUCX0BDm52ZD8wbeSXeWf4Vq+ nz/A== X-Gm-Message-State: AAQBX9fKNmhzuvtVQXBychDinA8fqawml8xhvoaBBSTYCWe9lp9ztiuN bBQYC/+oyPlmbfyQDZX3RS4= X-Google-Smtp-Source: AKy350Ze8Tv0YqSXT14neaUNfEVUUfvrnu6p2Ls7vR1xgw5JSmGx7I9PgXV6gytGGhd8sVCBPP0ulQ== X-Received: by 2002:adf:e584:0:b0:2fa:3af5:bd36 with SMTP id l4-20020adfe584000000b002fa3af5bd36mr4878832wrm.24.1681913443959; Wed, 19 Apr 2023 07:10:43 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Apr 2023 07:10:43 -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>, Dave Kleikamp <dave.kleikamp@oracle.com> Subject: [PATCH v3 10/19] jfs: logmgr: use __bio_add_page to add single page to bio Date: Wed, 19 Apr 2023 16:09:20 +0200 Message-Id: <20230419140929.5924-11-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-Server: rspam07 X-Rspamd-Queue-Id: 5F06AC002D X-Rspam-User: X-Stat-Signature: uy5ikapzkdy1bihnf5bsfo1irg1feykj X-HE-Tag: 1681913445-860418 X-HE-Meta: U2FsdGVkX1/bCGZWtk6wuHDVMlI4X247nSK9Zi8HcOyZhmY9p2wwCiYr4kF9YhqfLEIQ1UeezXO2jjYZVJUja8BtdRzjAXkv/ED3vfNf551BLQwHHh6LXpT97FoVN19enAxdpJcrhvSIMd/f1VPCYFcKcqhL+hmBnHfy5wBsJEY77HFIjVrSXusIQy9/DT2EHgto7rTfyYE1tAJdNiQ2Hz8hN+RpfK4p30Ad57p9PnPeQpT6UcdwljX7wGBsy9fJHq7mVLLY+bbeoJ7ZU2IrS+EcODggNshevMLHvcz28ClZwEEPpa8izKSJoZz7nPE48wh0Fyv211z2WMmCSbwmOWs6gYLIrFiqdhRlehB7D36g/zbir9M3OOHzVDZH6KFTdesULpReTuyNdl3s778Ff51me9XoAaRnplomspCuj7US8VC7NVqtljWuz7It2Lc18uuA6jR+06TkoNTFwvfnHt43rBA/OPEvB+sVhbUkbwUVFtdrymNLEGi8jEXJAkrbVu+RbmP1YXxKb+c1AVI/MhT3G+FEMS/o8An7LjXKxJ+ZytX8En9Ed9Ip5RAGBiedhMshzYB4i1Nh91VcuvNwJAdljQ8Ffq7eya2V/TuSfgADo/q8iAZ/WxwOMreO9BkPx9RzlX320HLLEhADRcqYuKKxGCHcQdHObPey++WFTxcKvaAJ4PPShJ/V39Ay9Wps6oT388eMMWiYxAlVJMoGNcfVIwySEbKo6R4o1K0WuZuvFOm7WrTiIy6kNcH1wm7vVp86b0alOk2j/y0KYvAd3Led6eXCcZcK6JOAEvBkdw8VVCfZEr6HfA0hFwuVTLbFc7b8/XnvxeyZkX08WiUu4gKKhsm3Sd5j7s/S9fS1mB0eFBpZpzdv8VyhjVhAt6PKwasdnvOFXMvDkAYAvmMQNF87YrhFb0RtxlU2mveYQCSas3nUk5UQh1TkkKNwRe8bgVnBDoogeFgVNkjMZzx ffoMZ0Ee hZChT01e9iXhnf+O7OFIfUyFakkgqCF/YOfiynItOohJoUZdPicKMemvWTHop1HC47+Vr7ESzIoTxSJCrMifT4WZY9Rk2TT8EZ8AbvPfYlIyKFYWosmSmR/RM8h0CmWBJ91Dj56mxHu0XdZf1aHJPnOnrRVS1hNu6OEb9JGcQ5dogXpzyVD4ZQhJgPXGd/pSbrXgJaJQrz+JbMkbE3cRfZNyIqRgR2fU9Zup0KZvWHsUhcfLMPQmG3F0ZQk7E5Pq0YBYTNAe2MvqskOfwE+2OEgC2tpF6dpKDPB4cF1+gACCc55NaMtntbHPUGWEhMNt6ysWGjdNqXBF+i/iK328Pg4DQRoklutGAIcK+0BZBKAo0hXNgs7tpumjVdrmsqrSGsaCpCy0Qp50lu65fZEninQKgV3JDh0cyRbkdzhzT7sIAzpu01ojmw4a3Oxux65AMLiRVWclMmNBFFcUNpbO1B6ZXEsA3SS+s4IPeXNPp43EgeLAQLS5wxk8BC5viAr3Xa3d8KhCn2tuIowGqhL/yQ+sOCrBJpm5a6Fkw3jjR0+CQUl3C2oUtJhW8QVe7AwNvxF2MaAGNaVXiV64Z0rlBtAafEA== 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/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c index 695415cbfe98..15c645827dec 100644 --- a/fs/jfs/jfs_logmgr.c +++ b/fs/jfs/jfs_logmgr.c @@ -1974,7 +1974,7 @@ static int lbmRead(struct jfs_log * log, int pn, struct lbuf ** bpp) bio = bio_alloc(log->bdev, 1, REQ_OP_READ, GFP_NOFS); bio->bi_iter.bi_sector = bp->l_blkno << (log->l2bsize - 9); - bio_add_page(bio, bp->l_page, LOGPSIZE, bp->l_offset); + __bio_add_page(bio, bp->l_page, LOGPSIZE, bp->l_offset); BUG_ON(bio->bi_iter.bi_size != LOGPSIZE); bio->bi_end_io = lbmIODone; @@ -2115,7 +2115,7 @@ static void lbmStartIO(struct lbuf * bp) bio = bio_alloc(log->bdev, 1, REQ_OP_WRITE | REQ_SYNC, GFP_NOFS); bio->bi_iter.bi_sector = bp->l_blkno << (log->l2bsize - 9); - bio_add_page(bio, bp->l_page, LOGPSIZE, bp->l_offset); + __bio_add_page(bio, bp->l_page, LOGPSIZE, bp->l_offset); BUG_ON(bio->bi_iter.bi_size != LOGPSIZE); bio->bi_end_io = lbmIODone;