From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F70FCE79A8 for ; Tue, 19 Sep 2023 16:35:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230147AbjISQfL (ORCPT ); Tue, 19 Sep 2023 12:35:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbjISQfL (ORCPT ); Tue, 19 Sep 2023 12:35:11 -0400 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 349EFC2 for ; Tue, 19 Sep 2023 09:35:05 -0700 (PDT) Received: from letrec.thunk.org (c-73-8-226-230.hsd1.il.comcast.net [73.8.226.230]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 38JGYI8E028975 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Sep 2023 12:34:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1695141262; bh=NGBAkjk/YE/hENxosqRG5ZbZZ+oPURPyaV1n+mDjY4A=; h=Date:From:Subject:Message-ID:MIME-Version:Content-Type; b=SUJaN+rRopikPSk+FjhrYbdNLPy3QXmfYPFefn5UODLHyy/H25cnUHqV9XYdsaI5e nf3ucoAT4DsE66LG+0KnbJ0jtipdSiHgrn2OMBzs40DJi6DvKQvraLQnZqS9N7wDnR UzQT3TL3JFlTbYRKIM0iFnZnPy0MxiwfTjthqMwqv++6yHMnlfBlHwzCO5qHy2ixEz YrhunkgRly4lpkkFPUmt5vHdU29Gqs1M08jJG/IoD0nU2p/ZpRsuaEp1JUYbB4LV5O N9e+5FTFbd+gBQHDxzvlYRdzD6CFpnpMRWaN0zH/voACnAVc5xXrNeKbGEUqmmypQT p00dKfxBovd3A== Received: by letrec.thunk.org (Postfix, from userid 15806) id AC4708C0385; Tue, 19 Sep 2023 12:34:17 -0400 (EDT) Date: Tue, 19 Sep 2023 12:34:17 -0400 From: "Theodore Ts'o" To: Matthew Wilcox Cc: Dave Chinner , Linus Torvalds , NeilBrown , James Bottomley , Eric Sandeen , Steven Rostedt , Guenter Roeck , Christoph Hellwig , ksummit@lists.linux.dev, linux-fsdevel@vger.kernel.org Subject: Re: [MAINTAINERS/KERNEL SUMMIT] Trust and maintenance of file systems Message-ID: References: <20230907071801.1d37a3c5@gandalf.local.home> <169491481677.8274.17867378561711132366@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Tue, Sep 19, 2023 at 06:17:21AM +0100, Matthew Wilcox wrote: > Frustratingly, it looks like buffer_heads were intended to be used as > extents; each one has a b_size of its own. But there's a ridiculous > amount of code that assumes that all BHs attached to a folio have the > same b_size as each other. The primary reason why we need a per-bh b_size is for the benefit of non-iomap O_DIRECT code paths. If that goes away, then we can simplify this significantly, since we flush the buffer cache whenever we change the blocksize used in the buffer cache; the O_DIRECT bh's aren't part of the buffer cache, which is when you might have bh's with a b_size of 8200k (when doing a 8200k O_DIRECT read or write). Cheers, - Ted