Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3957343rwd; Mon, 29 May 2023 20:55:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72dA2ZS9QvlIld5u1PtFnVlt7LFMenSWtIIox8jquZgOPNbtTWfqKwTh6vHnnS95nHBWUh X-Received: by 2002:a17:903:32c3:b0:1ae:35b8:d59b with SMTP id i3-20020a17090332c300b001ae35b8d59bmr1390443plr.41.1685418925060; Mon, 29 May 2023 20:55:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685418925; cv=none; d=google.com; s=arc-20160816; b=Z5E1Yjp3bKsO3x4y7fF05Lqp/Z3TdP2pOf0xsV0XqtIaSA0PUiyOnWH+aVsP+on2Ru z5bPu9vscKLu7Lq31FzQY68avr2+bS77RnFfcHpNe71dYX/uOrT6cgHnMpkdqkE5pE1T aFRUWAkDsw7GdPRO4G5gYoVvD4gLrNt0AAS/SNqacQH1MIJTDOKcHRb/YKJJASCi6oqo ZpNeZKfgZrehBnIsfrZ/sNWTLaWPD5SjZJle4ScOwUoW6lV0lR1JhRnvSCn63cL4+7IJ CmhhV2EpSoIXNZhmlkw7ZhNwvCA2DSsT1/k5Thnszox+UKiRQ1QhgS42WUe8phx8aRO7 5KEA== 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=2D/dQDDcxVNNdhfU159MLR/FS+XWwtto6W8hG7rRSiY=; b=gHXom1NAkImaewnCiUVS69EGOnx++duai6k8gfNxhOLzSPlMentfl0w4nHwFXWNzAk 4QLNrIXwg+lLcHMgj5StiGHnczmX8JfWofEi8mdM3vRygP4vQCX693GovtRTIWDBp3Qo GyecKBAMfCjuSmeeX79PHF16Huv051+0awRZG+WBp3HuZIZYnE9pLkFvIfU6iwLrzKet VuQETbTolam+S8GEGBOllYYFBZhXY+7ytPltAIVLcstntbTaI+qVkj8mEwgNFY9tQV6j fvS9VYGgoxF6CIvsV9fNUGpMck+hJrVgUXj7u3/6oettfLj7G0eoMcqwY4IwMcQiNtLK Hgqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=UFz1I7Br; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a170902c40e00b001a994803b1csi4962080plk.19.2023.05.29.20.55.09; Mon, 29 May 2023 20:55:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=UFz1I7Br; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229603AbjE3Dj4 (ORCPT + 99 others); Mon, 29 May 2023 23:39:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbjE3Djy (ORCPT ); Mon, 29 May 2023 23:39:54 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 563C4B7; Mon, 29 May 2023 20:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=2D/dQDDcxVNNdhfU159MLR/FS+XWwtto6W8hG7rRSiY=; b=UFz1I7BrDrz/KrjWMd1GpiN8CY izU4R/occ2YkdHaiSMFt3hzhzlpvrZVQ4RYKxk7+4zQH+/xX6cSNuj1op/XqUGo3GPp1nZ46SiFmC lcO09fgDSbEtrQGiG0wwv52dX7kD7n/uvFW97/OSzAsBPbSjAMPgxWo1I/tFfcZrBSygoVbu/ZNZc bhjO3w3LIBc7h96viLyck3A7QdN/XEDNFVxbI1C+apn1ifn6p/RxuYSafRPigvjwzwwL/n0dyl0+S 0uAU+JQU39lmzQAcfNeWoBvbn0s/O/btYNuM0S1GyXaA3xbpj6dkLBkMGPB9U9w+h3Cma91hWJmZ8 O2mM5mNQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1q3qCw-005vQx-6s; Tue, 30 May 2023 03:39:38 +0000 Date: Tue, 30 May 2023 04:39:38 +0100 From: Matthew Wilcox To: gouhao@uniontech.com Cc: viro@zeniv.linux.org.uk, brauner@kernel.org, axboe@kernel.dk, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fs/buffer: using __bio_add_page in submit_bh_wbc() Message-ID: References: <20230530033239.17534-1-gouhao@uniontech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230530033239.17534-1-gouhao@uniontech.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 30, 2023 at 11:32:39AM +0800, gouhao@uniontech.com wrote: > From: Gou Hao > > In submit_bh_wbc(), bio is newly allocated, so it > does not need any merging logic. > > And using bio_add_page here will execute 'bio_flagged( > bio, BIO_CLONED)' and 'bio_full' twice, which is unnecessary. https://lore.kernel.org/linux-fsdevel/20230502101934.24901-5-johannes.thumshirn@wdc.com/ You could send some Reviewed-by: tags to that patch series.