Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4237572pxb; Tue, 26 Jan 2021 16:39:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLBIbAxWzuuEt3ypXfNbflcXT1EpvhQlTXRn5STxInyNicpSMz1/uClqSf9gsRzkHDYyxo X-Received: by 2002:a17:906:fc18:: with SMTP id ov24mr1041392ejb.529.1611707998146; Tue, 26 Jan 2021 16:39:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611707998; cv=none; d=google.com; s=arc-20160816; b=WSGiY37l3oCY5Xsps45hZwHr2e6SjDVRKcQDQ9UL7bK2xvOO7KXzSL3yV2WHwG9+Nc a2RX780u58Ik7VN4ZZTxZmROOy64/UPsedOoCHXDaBvy/+OjhQM+EuLavqUZZ5EDYu8q dk9ZKE5Ffg0J+RN063VZYE539ACLhouB3RrqCTWpNwBkOc/CLcVUCZ5++miSaxeVoJTp sUt9nIIdO7XCDYivC3Qk6Gyv/ckrJxjURhHe1YgTvbZkjw5N1OmRAPfLY1Rs3AIRChYs LpqnnytW3ttCH/CeGHZpFb2UnzRY+ZXdoLr9++uhS1jsLUXu6Ch0yF4TH3SQ1CauJyGG 0gaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PVXe/0mnYC9gBx+P4ki/TAy9pdcHveLUHCBkOxpzoLI=; b=EMl9tAstm16lpoWkOMQwE177mW5ua9UFekUm8YTOKmbCVya2UoW3cZXqqeVqKGRBOB odtZehv2lp85L+Pn8j9kClsf8U80j+9LL8zZ1PlcxREG5NnBrRXH0lnW08+m6PjM6WeF /VeEOljmAJX2HKRv/JuQWCXXcLy27mb/Yj8pdXAGRoVPwWBPzTcFtP945tJZsArXQLA0 691hZWRtkb0u1D+A/GxZoQHfC2kEgvxndKmTmAi8/xK1YXTxS3MoJowJMODg24G896WE dY1qcsF6ohmrdlkLZ+wSAw5H/5XbBF53sTbY8/VUDX7iHyPl52oU/9JurNpyt6CF90CZ O2mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lCGLIreD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y26si54383edm.571.2021.01.26.16.39.34; Tue, 26 Jan 2021 16:39:58 -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=@kernel.org header.s=k20201202 header.b=lCGLIreD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390700AbhA0A25 (ORCPT + 99 others); Tue, 26 Jan 2021 19:28:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:49188 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726902AbhAZVvr (ORCPT ); Tue, 26 Jan 2021 16:51:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E0E7A20449; Tue, 26 Jan 2021 21:51:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611697866; bh=uF4Zh493+gdGT/Bg0kWKqJydeGxsHWjFoA7xBs16rsw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lCGLIreDb/5Hwx8N2JmnAiiS0jiqRFkx5lWB+dYgajzTx5WDO2x1R1zbHYLyQO1UE 98ScSw7v1shjHJr3DWN8DeVEKxjccGxz8l94yiaaEhvMgOjW92D6rHh7wIPb+Z8Wcf /WrH9o9CZLj9VLpBgdfMlPa9On6Ygs1IpZ1Ijf2DQsb5xhrrGFiJVmYaEU6R3mgkut QaKR1+XYY5LF7MORkDaq36e+R/ZWRbwey+gnJIfZYHPT0K+eh+0B9d6nRjRnNDd/S0 dIZkNMAj/KUbyyLBEMzujKws37eYXRnxT13Nwk2S64RN7RIaBpTrze3+70kHOv4aD1 nwTbNcB4SZj3w== Date: Tue, 26 Jan 2021 13:51:04 -0800 From: Eric Biggers To: Christoph Hellwig Cc: Jens Axboe , Song Liu , Mike Snitzer , David Sterba , dm-devel@redhat.com, Naohiro Aota , linux-nilfs@vger.kernel.org, Josef Bacik , Chao Yu , linux-nfs@vger.kernel.org, Coly Li , linux-raid@vger.kernel.org, linux-bcache@vger.kernel.org, drbd-dev@tron.linbit.com, Jaegeuk Kim , Ryusuke Konishi , linux-block@vger.kernel.org, Damien Le Moal , Andrew Morton , linux-mm@kvack.org, Philipp Reisner , linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, Lars Ellenberg , linux-btrfs@vger.kernel.org Subject: Re: [PATCH 03/17] blk-crypto: use bio_kmalloc in blk_crypto_clone_bio Message-ID: References: <20210126145247.1964410-1-hch@lst.de> <20210126145247.1964410-4-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210126145247.1964410-4-hch@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Jan 26, 2021 at 03:52:33PM +0100, Christoph Hellwig wrote: > 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; > -- Looks good, Reviewed-by: Eric Biggers