Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp484571iog; Wed, 15 Jun 2022 06:22:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u98qwVBBC3J3GXtF9d22DsJLOYfu20pbF7ealu92yJ+cN9GTVkBZg2kYcCD6UUyBGNDyx3 X-Received: by 2002:a17:903:20d1:b0:168:93b6:a957 with SMTP id i17-20020a17090320d100b0016893b6a957mr9705127plb.156.1655299375601; Wed, 15 Jun 2022 06:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655299375; cv=none; d=google.com; s=arc-20160816; b=OT6bpkg1yckeGPhJGb4IwMBqu3w7H6uvK2aTY9BJuj/NM04RGibl4MDIBau4YZJ6Oh OJICNyzZ/DZvE8IdZqYlSKa6GyoW56nOvWPS/tAGMKaHedLvMkJ1vrD8we8RkNWvezF0 HOSHpGIvIRUx2yS+u/rbY4WOzKQ3VNQ95XcSPqllc+Zn/yWouUy9Nw02g8vjtp21h82j 0U9aN0ekHhtbQ8iyA5M1C8BkIkFy3oeDdFdwKP1aSTSUvxXvTLY7obe/gK3lSBUu7QSC AvTFnj40VZq2r3+Y7NVLsd+KljIla2ieAngFYUDlmjcxIh2HakOHxrG43UifdHSxOZ/F 7CQg== 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=FHOVdTg6NKnoEjJkArBOs1GnjsYN72M8SV5hUzpqtrM=; b=PVumjPZmcbWZhqnqjua/pmE/gnlInEWh5K1Q6a8Z4Pv2+Ge1vZ7e5hSsdPJ+Bk0lv7 SvTu9zSSs4941fZ46EpXFpKAIggJHWF6DpymCwDSPb3otMk5Z9mU1te3ytXDOIVfUtiq ZVUi1vPwPnb8pcbuKKpFCi1bKSkTaL+6NVv2+FEboXs+yf0Xl2h/ESm2yD7fGhP/Ugoc fI3wp0cE19ImI1y7MefLCDf/0bH/qcr6I4a/UWh+6UHkYCFwEQQxfK5MTp9mErXS4IMQ FN+2pe1smqBOh2HkfUQNVI4WEhX+7HG+zOm1XQnVKHgx206+tfaCu7m0i4HtoXG0bqfE wW5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=2XD3XMBM; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 b6-20020a63eb46000000b003fcb3adf3cbsi17451610pgk.809.2022.06.15.06.22.36; Wed, 15 Jun 2022 06:22:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=bombadil.20210309 header.b=2XD3XMBM; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237546AbiFONMJ (ORCPT + 99 others); Wed, 15 Jun 2022 09:12:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233309AbiFONMI (ORCPT ); Wed, 15 Jun 2022 09:12:08 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B528A24581; Wed, 15 Jun 2022 06:12:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=FHOVdTg6NKnoEjJkArBOs1GnjsYN72M8SV5hUzpqtrM=; b=2XD3XMBMNnkMfNTbWofuI16L1y ibePJHi5dvh74MnJpzG/u7S4aY3orURjcbZttxdDGEus2CPnup5s5KOGh1tezdDut2pv1x+NGhPuQ X+3q7hkUy7zDSvVK2F4TppQrdIPlffoCN0T5tf11PK7u3/D8dclNIN8z91X7ihwHu8RuY3cc7wDnT d43ZIT49HPtGxdcjxsIboQvMIdqXM3LrRBtzzeyXMjMyX991d/c4srAjBj5WAi/1DhB92Ucde0Xdx naUR1vNfJj/V/p7q3PNpvUcCQ6o6WE2NrGm2l1MnAHXJhZcTWN19ICW2w0WfNwRcn01j35hhvNYIv H6BuzbSQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1SoW-00EdqR-Tk; Wed, 15 Jun 2022 13:12:04 +0000 Date: Wed, 15 Jun 2022 06:12:04 -0700 From: Christoph Hellwig To: Eric Biggers Cc: Dave Chinner , "Darrick J. Wong" , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-xfs@vger.kernel.org, linux-api@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Keith Busch Subject: Re: [RFC PATCH v2 1/7] statx: add I/O alignment information Message-ID: References: <20220518235011.153058-1-ebiggers@kernel.org> <20220518235011.153058-2-ebiggers@kernel.org> <20220520032739.GB1098723@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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-ext4@vger.kernel.org On Mon, Jun 13, 2022 at 10:25:12PM -0700, Eric Biggers wrote: > While working on the man-pages update, I'm having second thoughts about the > stx_offset_align_optimal field. Does any filesystem other than XFS actually > want stx_offset_align_optimal, when st[x]_blksize already exists? Many network > filesystems, as well as tmpfs when hugepages are enabled, already report large > (megabytes) sizes in st[x]_blksize. And all documentation I looked at (man > pages for Linux, POSIX, FreeBSD, NetBSD, macOS) documents st_blksize as > something like "the preferred blocksize for efficient I/O". It's never > documented as being limited to PAGE_SIZE, which makes sense because it's not. Yes. While st_blksize is utterly misnamed, it has always aways been the optimal I/O size. > Perhaps for now we should just add STATX_DIOALIGN instead of STATX_IOALIGN, > leaving out the stx_offset_align_optimal field? What do people think? Yes, this sounds like a good plan.