Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3964495rwo; Mon, 24 Jul 2023 21:09:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlHz8DUm5xHq2jj+7sigcZWu0FktGNPVWcYC9fJ5a0IEPgeEh8hT94sJ9NEWt7neFWz6PPHq X-Received: by 2002:a05:6402:742:b0:522:1dcb:c355 with SMTP id p2-20020a056402074200b005221dcbc355mr7154959edy.16.1690258158809; Mon, 24 Jul 2023 21:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690258158; cv=none; d=google.com; s=arc-20160816; b=Ikgq5hfzZ4VhExU64CbkSJDS+JsPoq7WOO1PLhFY6TX0Ak7PQYZAwheS8OV3yTnoSW 2shjoMbqIpOWW1CpblJEr2hK5l3x1Qbu3VTVtbhpMeiZZlfTOAIc+IwtLCOWg9yBeAAY r5k8PYCKdVwIyL3QQaZbw+q4yyHtAVRzdK8UvB9kSHt5lzArJWyLbuKt0d8eihv82hN8 2OxIseZtjQhUiPUy3QtG+W/hNjl5r3THbpy3c7F3nRs1Y+3DY6IqZWOWdatkVeXsyUmD ZdguNit4i6KBM9IXox8ZLnwtUkRULE2nF9CVWapsb8FlSjLjrWCPYUw6UnfS44lEBY5c itxw== 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:dkim-signature:date; bh=+Q5Rm2EJwkfZWw4mhZH3UHuciUZSLvBqW2m7BkgfTEc=; fh=wIlLQKQRIj5D3CN7B4D/vceHd1NYxl/NLn4ILcCyJmU=; b=YDWCMpaYn6LuUlIWiXNbLhTiH8luz0cUoX4bW2ezWxsRkVMzHZQxRyIpxplbhTbu4l sF6bVuaLyb6mopz3PradjGQZfTPPuNnLeoWPRHFnV0XQcXq6CD5Nd9xfvGJcvqoVfLev l4y2RxIQsJtGpdt79T3Cb3vD3Awxxn6fVk4Sy17L6LoX/ZC6KnQ4uEqaty3j0iWDFEmm gDFsKoa6RSLSB9pslyU/JQB1XB1KxFaBXHt9XVbMi3dO0G9ea6CYhrMZlW02Xh1Pkt21 zt0SFtIrIzn5cUhJ9BqMM52zrX87kAEFk5eIMEfN1N2myvPjMEcbvoCARSuF3t7RH+wd hh7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=sXRcF5tm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a10-20020aa7cf0a000000b0051ff0e743c7si689068edy.397.2023.07.24.21.08.54; Mon, 24 Jul 2023 21:09:18 -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=@linux.dev header.s=key1 header.b=sXRcF5tm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231308AbjGYCrb (ORCPT + 99 others); Mon, 24 Jul 2023 22:47:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230104AbjGYCr2 (ORCPT ); Mon, 24 Jul 2023 22:47:28 -0400 Received: from out-14.mta1.migadu.com (out-14.mta1.migadu.com [IPv6:2001:41d0:203:375::e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C6471FC0 for ; Mon, 24 Jul 2023 19:46:57 -0700 (PDT) Date: Mon, 24 Jul 2023 22:45:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1690253155; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+Q5Rm2EJwkfZWw4mhZH3UHuciUZSLvBqW2m7BkgfTEc=; b=sXRcF5tmB3R6utQ6CUm2HRp5Jrx4VPiF0MbsP3FfuRIH7th61+n2XjQ4zqsQQ2uYtXBISR 6PIi+C0vw8jA1YAxunLrK4NUXFmBJsJHHcd5k9PsCnz3mLf6M3vfZUFpiIbbOnl+M1FlAd kswumCdmWwrXLDVYd8fafP8ZORJDt8Y= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Christoph Hellwig Cc: linux-bcachefs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Kent Overstreet , Jens Axboe , linux-block@vger.kernel.org Subject: Re: [PATCH 06/20] block: Bring back zero_fill_bio_iter Message-ID: <20230725024553.bqwoyz4ywqx6fypb@moria.home.lan> References: <20230712211115.2174650-1-kent.overstreet@linux.dev> <20230712211115.2174650-7-kent.overstreet@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 Mon, Jul 24, 2023 at 10:35:45AM -0700, Christoph Hellwig wrote: > On Wed, Jul 12, 2023 at 05:11:01PM -0400, Kent Overstreet wrote: > > From: Kent Overstreet > > > > This reverts 6f822e1b5d9dda3d20e87365de138046e3baa03a - this helper is > > used by bcachefs. > > > > Signed-off-by: Kent Overstreet > > Cc: Jens Axboe > > Cc: linux-block@vger.kernel.org > > --- > > block/bio.c | 6 +++--- > > include/linux/bio.h | 7 ++++++- > > 2 files changed, 9 insertions(+), 4 deletions(-) > > I really don't see any point in offering this in the block layer. By > the lack of any other caller it obviously isn't such a generic and > always used helper, but more importantly it literally is three lines > of code to implement it. And yet, we've had a subtle bug introduced in that code that took quite awhile to be fixed - I'm not pro code duplication in general and I don't think this is a good place to start.