Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3934560rwo; Mon, 24 Jul 2023 20:27:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlEJ1VQdiXAiyc4VrdtMU0rmn85n1zR/ADa6VNWn4CBTo0ANdWYiJtjCI5Mj0v347myAAwpO X-Received: by 2002:a05:6358:c16:b0:135:89d6:22f1 with SMTP id f22-20020a0563580c1600b0013589d622f1mr7088185rwj.21.1690255620993; Mon, 24 Jul 2023 20:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690255620; cv=none; d=google.com; s=arc-20160816; b=zPywEI0E0Dzl7GfHoGs+HB1Nlz8fU6ScI1nmTGTUCipn3p4peNX3bh7wQa5gF31Dxl y2fT0cl57wPT3wFqjWje90EDv+kPIngP+SyODETjFo1FGVExALHvZV9/I4acfkwixa9z apTdZzM6kDaWzK6KGe1dzhP2VxpdumsXXEGGOpWyqNcOMpMe75Aloa3xwxWldZbQr79W swyplr7Zce8xozeemJRZN2V6Voi9E/XZbsmBGi9JWQ7g/JoS0xCSUpotPV54+2ckJyhp wSLTFFQXhIK/35Y9UPazH9ZvSAXxf5yX4qk19ZShEOecw1idEpbq7iazaL9L+wf1IZSM G6sA== 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=q7+t6JGgjNA4srPAzMo98NzDSt2aKwb5Cbcib1WcjJM=; fh=4ZoXP1ZiBGNANv9Bx/y8KEdYkOdAVeWSfmFGTd1wWnQ=; b=HFQ5ph7vLiR2XgpzvKuY2/TJd59MJLw0eDM8mAbGmbE/2iofrD7z79jz67TIDjV8Tg bcFnZMCwRmv2H2yEJJgtx77fbs48auc2VOWCbtLgj4WoxiXtAeyETSJ6rzIhbnAeKQmV dIjPCzEZ3WiAhWRK1YenIAdIt07OxjT0fU7ZgK78bgqiYx63D/OZVqEO4KOLXgpGzY6N 2wu7/SBdsFMrwPw5rYRZ7YoctRwcN1dXwows6UWSv8lcRkiswhkCHJIkEXW6sp/uHjLf arDQ4EF03/6rXpagI/WZBvVbowqvca3gBFl5rd4ceLPhhl3frmVaaPYUSmIvUDte2fRa cVtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=qOkfgLMs; 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 bs186-20020a6328c3000000b0053fc290934dsi10170676pgb.361.2023.07.24.20.26.48; Mon, 24 Jul 2023 20:27:00 -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=qOkfgLMs; 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 S231453AbjGYDAp (ORCPT + 99 others); Mon, 24 Jul 2023 23:00:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231160AbjGYDAn (ORCPT ); Mon, 24 Jul 2023 23:00:43 -0400 Received: from out-18.mta1.migadu.com (out-18.mta1.migadu.com [95.215.58.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16CC8E66 for ; Mon, 24 Jul 2023 20:00:42 -0700 (PDT) Date: Mon, 24 Jul 2023 23:00:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1690254040; 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=q7+t6JGgjNA4srPAzMo98NzDSt2aKwb5Cbcib1WcjJM=; b=qOkfgLMsqd8UvX0fEhUXY2j3afh1S4GVEQM7LfgmYCfW4QzrKi0buH1nYnbQE9yCCnBoLN nw6UqzTjFUi37nyOeyJCqMmaNW2h6+Y9WuCrYYWKqaWqFKSNkvMgkI40DiH0ljCu1rL3lM D0JrzMwWir2854jKvwSTymA6T/f+AKM= 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 , linux-block@vger.kernel.org, Jens Axboe Subject: Re: [PATCH 04/20] block: Add some exports for bcachefs Message-ID: <20230725030037.minycb3oxubajuqw@moria.home.lan> References: <20230712211115.2174650-1-kent.overstreet@linux.dev> <20230712211115.2174650-5-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=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 Mon, Jul 24, 2023 at 10:31:04AM -0700, Christoph Hellwig wrote: > On Wed, Jul 12, 2023 at 05:10:59PM -0400, Kent Overstreet wrote: > > From: Kent Overstreet > > > > - bio_set_pages_dirty(), bio_check_pages_dirty() - dio path > > Why? We've so far have been able to get away without file systems > reinventing their own DIO path. I'd really like to keep it that way, > so if you think the iomap dio code should be improved please explain > why. And please also cycle the fsdevel list in. It's been discussed at length why bcachefs doesn't use iomap. In short, iomap is heavily callback based, the bcachefs io paths are not - we pass around data structures instead. I discussed this with people when iomap was first being written, but iomap ended up being a much more conservative approach, more in line with the old buffer heads code where the generic code calls into the filesystem to obtain mappings. I'm gradually convincing people of the merits of the bcachefs approach - in particular reducing indirect function calls is getting more attention these days.