Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3880650pxb; Tue, 26 Jan 2021 07:07:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxKCXUQdT2GrzallhXepC+UqhSuVR8EqHDD1AZWA+bp1DNWarDxcnXKI66W20qdJQ1ngH3 X-Received: by 2002:a05:6402:31ac:: with SMTP id dj12mr4867687edb.44.1611673630216; Tue, 26 Jan 2021 07:07:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611673630; cv=none; d=google.com; s=arc-20160816; b=TfgtWdLTmnOcIfL691VFhGrbGdPoL6ZmfzPBrccT25Ej2TuvlB9pqz6LajLnhQGpZL I5Rwh2GlVNSZ+QBYGkKXEkIeeU/GijpbNs9tueLfjN7oOt+FDUt5cil5SGW5U9tYGFR2 1bUwYwIm/xhCzBM2Nwh+oVF7oJhB8Ahk9WSfxr85ynzeV+UGO7855YjCSo1TUk5Y9OAW Jhc2S4S42wpmmQPQKsDmMG9TdPvBoSiF/kksboLex9Zg8byl6EU8z7v9NeJgdIA1s8bo l+b0wZZuG+5IdIZYsjnVFqbqsRU7f9LASg6NZHTfZ/8tmCKgC/NyUjZOy4u1Rxk/KTeG zmqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Y3ETPQ/J5b9VzWd6gZkaTVXt4OBDcvG3hAbwDlM7Vf4=; b=DtPIGP/MkZ70o8yI21EexD32Xz9D+x0qOBFQHT6qu5My4SQv4bB9GoAAmpHeVwRbbp lmWRLsssDAFU3vOUL/HPh/+OE2fRk8U9GGrO0q4aAWRWOT1VJuDumNKyqBb2CkWZme23 oVVTlOc58iX6UuTZ6uCPcm99ajNVv11JRJDvsKRiOH2XGtpICd+KQB4eNcR2OcH3ydtp FWCFOHcfHFCi3G/EV+9aitT9Z8hmnZabWQ2bIki1ujf2M+T/0FthGekU0kfFmLtO8gkY /jedvq9qgMEVRBdWRCBCnK4Ac6xaldN7GIP3laEs685XYmSht5z5aEu0wtCUm1td2Fl6 AiGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="mwJd/045"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c25si8900377edx.588.2021.01.26.07.06.45; Tue, 26 Jan 2021 07:07:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="mwJd/045"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391690AbhAZPFF (ORCPT + 99 others); Tue, 26 Jan 2021 10:05:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391796AbhAZPDw (ORCPT ); Tue, 26 Jan 2021 10:03:52 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85118C061A31; Tue, 26 Jan 2021 07:03:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=Y3ETPQ/J5b9VzWd6gZkaTVXt4OBDcvG3hAbwDlM7Vf4=; b=mwJd/045dmJyeWS4zYv9KjfH+B uVMvepvUAcMJ2wO2oEm9Vj0hy/6OgYLg2wyYVvQiEp49bLmHzFb7RYP41TAxbPQJk3d0/z0b4wZ5I GjH7z3cKjL2XyfrdFxbViextVhLmmgrhFNzkIsiDEh/n5UjIE1U7X4vuFMroMTeTlFcEdMC00xHnu j1P/uVY68WPmlmuYjl8Kis/h1pNlis4wblwNZsQRu57JK1/jxVqdb02OpBkO0pBlFfw6fjrGoA+5y L7P23xpZ/bUuqlzT+iDWd0gG9GfO5T4JnY/ujfPIedVOLarszLq7aPsQ2C7UTvLF8Z+V9J9PTiQGw TelaHqLA==; Received: from [2001:4bb8:191:e347:5918:ac86:61cb:8801] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1l4Pmc-005mP7-SH; Tue, 26 Jan 2021 14:58:39 +0000 From: Christoph Hellwig To: Jens Axboe , Song Liu Cc: Jaegeuk Kim , Chao Yu , Philipp Reisner , Lars Ellenberg , Coly Li , Mike Snitzer , Josef Bacik , David Sterba , Damien Le Moal , Naohiro Aota , Andrew Morton , Ryusuke Konishi , linux-nilfs@vger.kernel.org, dm-devel@redhat.com, linux-f2fs-devel@lists.sourceforge.net, linux-block@vger.kernel.org, drbd-dev@lists.linbit.com, linux-bcache@vger.kernel.org, linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 03/17] blk-crypto: use bio_kmalloc in blk_crypto_clone_bio Date: Tue, 26 Jan 2021 15:52:33 +0100 Message-Id: <20210126145247.1964410-4-hch@lst.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210126145247.1964410-1-hch@lst.de> References: <20210126145247.1964410-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Use bio_kmalloc instead of open coding it. Signed-off-by: Christoph Hellwig --- block/blk-crypto-fallback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-crypto-fallback.c b/block/blk-crypto-fallback.c index 50c225398e4d60..e8327c50d7c9f4 100644 --- a/block/blk-crypto-fallback.c +++ b/block/blk-crypto-fallback.c @@ -164,7 +164,7 @@ static struct bio *blk_crypto_clone_bio(struct bio *bio_src) struct bio_vec bv; struct bio *bio; - bio = bio_alloc_bioset(GFP_NOIO, bio_segments(bio_src), NULL); + bio = bio_kmalloc(GFP_NOIO, bio_segments(bio_src)); if (!bio) return NULL; bio->bi_bdev = bio_src->bi_bdev; -- 2.29.2