Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5117478rdb; Sat, 16 Sep 2023 03:55:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjU3xNmTzbq3kpva/sII2uIDT+787H0zgatwgUxru17OJifmSfsVNaE3VkZSTAXzp8bjIy X-Received: by 2002:a05:6e02:1609:b0:34f:1028:ff96 with SMTP id t9-20020a056e02160900b0034f1028ff96mr5727878ilu.30.1694861722314; Sat, 16 Sep 2023 03:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694861722; cv=none; d=google.com; s=arc-20160816; b=0HWjXBPU6i++griJJOUgsK8mXj0GDTh5tApzyCSHvEv5ihyCw2yWui5hU4ticDqOPN k/mjFh6Pau8uW8T/4B1U28BmRyGnT724xzxLjjCF5wIAbr1HQmo/n8jUZycGCAvZDKu1 2j0w4DSUoXNn4gW1l5RBErTZmbaa/LS/l/9NMA/H/v4mekLRsIbx2ZOdVaWORhAab/jP 4hS44JParIY3v8wG1m/o8LaXphhSPXl6YVrAsFKJu9x9xh8n/boBUt1dyg+EsjB4t7Ci EEXD9x2xHYs4aOUwrcEZWaQb9WfOaqGHHQhLy1EmRpQ5w1oSszSoYTmLBtZNRNIpufV/ oSYQ== 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=LO1yu7NDurGz5o2rdddgqdJM3Q13LpqRTHQ7QT9TTOo=; fh=W11qpygqhVl+bKjrif44rQ6UzYM3D5CrbTfnG3zvQNY=; b=jOdD2ddFLzXgr6F0et2Lq3APgVLxJT1+ufj5ArkziOL0K1jUiJGQBaUWH7UxXWMeqv vM2VlVC8WM9VzN6lcN7jlx+KbKoz/zAlvPgCiW8sIJrZeXlMp+Oo7v3nbfDj1Hd5BV3N fvzkgU9+F/b60BSeIk2H9I2EhVxB7h9wWXN71Nq7MOMYwCoG/9koo9Q9gWJ319BFgbTE K2ZpseIkneoYLkCzy3siYQlTEy2V/BnITSKh6883JD+a/5gjbbQXSvzWf682MVglQ5Hh 3zgha6eslphefGeiRoAOSKWak+P4vOf6Mn5AoqjEypd3sEVxroq1Zya1FEbrJvDm4E7r aGqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=HC2OPQqF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id y21-20020a634b15000000b00565f20a03f3si4547039pga.774.2023.09.16.03.55.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 03:55:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=HC2OPQqF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C185C80879ED; Fri, 15 Sep 2023 11:52:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236679AbjIOSvp (ORCPT + 99 others); Fri, 15 Sep 2023 14:51:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237118AbjIOSvf (ORCPT ); Fri, 15 Sep 2023 14:51:35 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9886A4684; Fri, 15 Sep 2023 11:50:05 -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=LO1yu7NDurGz5o2rdddgqdJM3Q13LpqRTHQ7QT9TTOo=; b=HC2OPQqFxalw4dkSw+zCUvDi2m CySSkIZYKgpzi/LAc5N11o7WrBB/5FE6qHQOeedzceli1IkuyglEbMmyOkF0kR7qaHuZTui26guLx i8m56aRO6jFnb8AgdkHySPgjuP2zdjMt9daRxVPXvNN2ogy4I5yktIu4oD19CEom1Iz9bhwIQPro3 TQAgxXmkowCZUSxIEmDGxBveDUNejR/hhRiC7vxY57WzssKbFQ4NbVCGiMPA2IWlDCfdGqaKuQx7I vrVxbi3B3dBMMycQVMptqrnEbNWy0SL8Q6/R0GiPPWafnvEJdx76F06W3OVITw886NCLdjabT+UpU 7Q/ufstQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qhDtB-00BPM9-Ii; Fri, 15 Sep 2023 18:50:01 +0000 Date: Fri, 15 Sep 2023 19:50:01 +0100 From: Matthew Wilcox To: Pankaj Raghav Cc: linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, p.raghav@samsung.com, david@fromorbit.com, da.gomez@samsung.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, djwong@kernel.org, linux-mm@kvack.org, chandan.babu@oracle.com, mcgrof@kernel.org, gost.dev@samsung.com Subject: Re: [RFC 00/23] Enable block size > page size in XFS Message-ID: References: <20230915183848.1018717-1-kernel@pankajraghav.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230915183848.1018717-1-kernel@pankajraghav.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 15 Sep 2023 11:52:21 -0700 (PDT) On Fri, Sep 15, 2023 at 08:38:25PM +0200, Pankaj Raghav wrote: > Only XFS was enabled and tested as a part of this series as it has > supported block sizes up to 64k and sector sizes up to 32k for years. > The only thing missing was the page cache magic to enable bs > ps. However any filesystem > that doesn't depend on buffer-heads and support larger block sizes > already should be able to leverage this effort to also support LBS, > bs > ps. I think you should choose whether you're going to use 'bs > ps' or LBS and stick to it. They're both pretty inscrutable and using both interchanagbly is worse. But I think filesystems which use buffer_heads should be fine to support bs > ps. The problems with the buffer cache are really when you try to support small block sizes and large folio sizes (eg arrays of bhs on the stack). Supporting bs == folio_size shouldn't be a problem.