Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2512760rwd; Fri, 26 May 2023 07:31:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7G5s4ZGYLUkJyBfyCYwPhvflf8Mc65W4RUzcK/pJi1uEBaoQjgC+2t2jxsJJtNU0uTfiny X-Received: by 2002:a05:6a00:ad5:b0:64a:f730:1552 with SMTP id c21-20020a056a000ad500b0064af7301552mr3850599pfl.19.1685111503357; Fri, 26 May 2023 07:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685111503; cv=none; d=google.com; s=arc-20160816; b=peSnWBdbD3HCagZ1PfkzdzRIslQhFmP05YhdhsYruL6dGRsgu0KILrUkCMJuAtPM2X oVUIrFrThAWYa2VdoeNGPOBt3v1Pl6i7zziqqywHxu2G/pPQSfytjZ8kdZabgF2UL18Y wNG/V2fKnbcJvIMTNTowMSkCYpCkxRoNCJf2vQ5uHgQ6lAV7wPubSyM8Mh/5S8G2oYWi gO7YhkbERt+6yZM/nngJa7wQaZfZgN2gkJ57j5vhmTktdbVN1lyAYMn+tQ2vVJ5Bx1lR wYZmEd9JItgbuzaCAgbxYRhRP5CFkSlw3KN5Sq5vxAhHHKm8xyPHkbYHJJbXGwxHiSM9 Obdg== 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=MVg67d6tqd4lwkRaTe+6MM98KoWSEd2dKs7M6jq9Edk=; b=eauXIACFj4p4Dx9EgjY/Xfp2mu6Z6JVhD+oMkjRnQIOKvQ2W39GEjb0+KMwfVbNLyR kXbmjZebQqcAkx1qxvzh+q35L7Wvq+xRe9l5xTezWF4WYK1zPkQH20nc2Rh7JZk6yzAi jMR5jIitHWBk5TV5mRjdGqUjz+jJu1JyVq9YzrWIeH0bZ7Cp5ux1Jjz3ha5sRZgWKoB+ lbTLSgEcLPA27mP86EcpPHGKfye1fT/G4VtwTDP1d0/hNrG68C7ldrsV2JVCmRmxL+HW yRD8C0rp1gOcFtGrM4cfjltwibn6WDawlE2e9Aw+cG61tqd18LxM8Cf088eqwSiU6vwq nmig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ojX1a7ro; 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 h62-20020a625341000000b0064f98fbcac8si2681360pfb.293.2023.05.26.07.31.13; Fri, 26 May 2023 07:31:43 -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=ojX1a7ro; 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 S243093AbjEZNyX (ORCPT + 99 others); Fri, 26 May 2023 09:54:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbjEZNyW (ORCPT ); Fri, 26 May 2023 09:54:22 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43933DF; Fri, 26 May 2023 06:54:21 -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=MVg67d6tqd4lwkRaTe+6MM98KoWSEd2dKs7M6jq9Edk=; b=ojX1a7ro2uIIFc9IZPCrb7T1P/ t98E3papAcFBLMw6gNNkOqjJbTbgzGnPaubXEi20RLHCoNArWLZ6Z01g9JQ+d1E1jT8D5Ty91i+fM NkL2Zdb7Ir4BiD4zZlwg3T0Fl2LjFrZz6TkWE0F8EkWR+1sOHib00qqhITphgLPVzDKqn8Q+SNutN C1yAvozRrYQNiQLmJ6pt+w0SJgjs0v7bImmpDUSwrqVFNY4aLYr7X7U6my8u8/k731yjsyJ2rf7is zTHjmuR0s9CdWwdc70Rl7VBuw3TtNHG/rT6e8LB9xjPBSCjPy0M2RUS2N2wYn4hWGUD4lT8HBUK4y BIIEXmmA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1q2XtU-002pxk-64; Fri, 26 May 2023 13:54:12 +0000 Date: Fri, 26 May 2023 14:54:12 +0100 From: Matthew Wilcox To: Luis Chamberlain Cc: hughd@google.com, akpm@linux-foundation.org, brauner@kernel.org, djwong@kernel.org, p.raghav@samsung.com, da.gomez@samsung.com, rohan.puri@samsung.com, rpuri.linux@gmail.com, a.manzanares@samsung.com, dave@stgolabs.net, yosryahmed@google.com, keescook@chromium.org, hare@suse.de, kbusch@kernel.org, patches@lists.linux.dev, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [RFC v2 0/8] add support for blocksize > PAGE_SIZE Message-ID: References: <20230526075552.363524-1-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230526075552.363524-1-mcgrof@kernel.org> 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 Fri, May 26, 2023 at 12:55:44AM -0700, Luis Chamberlain wrote: > This is an initial attempt to add support for block size > PAGE_SIZE for tmpfs. > Why would you want this? It helps us experiment with higher order folio uses > with fs APIS and helps us test out corner cases which would likely need > to be accounted for sooner or later if and when filesystems enable support > for this. Better review early and burn early than continue on in the wrong > direction so looking for early feedback. I think this is entirely the wrong direction to go in. You're coming at this from a block layer perspective, and we have two ways of doing large block devices -- qemu nvme and brd. tmpfs should be like other filesystems and opportunistically use folios of whatever size makes sense. Don't add a mount option to specify what size folios to use.