Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp3123157rdb; Fri, 22 Sep 2023 21:00:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEVjnEs8JYiha8QAFk8Q+y+2zZ3Y/wUs1JwDDEzLPApvOHKAhrUpufznavb7Me+9NxVPMaR X-Received: by 2002:a17:903:22ce:b0:1c3:1167:26e4 with SMTP id y14-20020a17090322ce00b001c3116726e4mr1419133plg.60.1695441635648; Fri, 22 Sep 2023 21:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695441635; cv=none; d=google.com; s=arc-20160816; b=Eoco8Lbe7Zsoy3tHAF3cNfN7lexNDYKrpuoRMqBsmcG7eHnNBvzfDb/u3ZQIzfYbj/ T607UHtgcsI3yRnw9xkjD9xcZREuoCNohg4Cyj3vuf6sswzFuhj/WmFbLnpKtV6FAibV 7Onwsjt+HiA0kid92Jg/Mwz37eH+A/n6JPbXu2IUyN0bqUAbt8ZpXFJihhcmJcc5wBp5 0nl/CYkEC2PYdvTRL+S7FDWwsa5lt55qHZ56umBmw8TwL6KENBIpjezzUeJpOuoWw6RZ dyaouuP4G/EtgJ90R0nM3P2mf+PaZ0rJA7FhprT6d75f5/BXLYpPMm3fczOxLMLOA7J3 W8PQ== 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=TwghE0UWvedzbS9x4AhHOtwKLQCqsKJyy8dRVBG0BLM=; fh=umVKoNB3/4WL+4Bh1CRK981IVF/Y4NQ9IHAZws2FMWU=; b=qqTc2j7AhjazFgIibXNCxbJTJ/CN3vni+OWBjCAF7DjNEwNF3Qgd3C7psX404bwg6l V64AdrtLc/+ymT2fzV5neuy/kpUHaiS76iCqYIpKmkfIjwE7AoyzupM8otij75QZ51pK LFbpUIVDjV8ZI5JLs0t0/Jcg25zBs5VYIw/iREVun0Ku94fkYAQed/4DfF9iZKOTd9Kg gRSovn1KHW50Uotzs86i826Avba2fFmrpkVsdYgq1BkFfVyn+Ligto0j9Wv2x5y1+392 Y4zbNGYESOjUzFRMV26FJ+E++vQ2btNGe4LsjkCwmRbeLTPS6zoGPW9ISC2DJrAniE+0 6lPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=J+2aR6VV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id u11-20020a17090341cb00b001b9c3498510si5353344ple.469.2023.09.22.21.00.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 21:00:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=J+2aR6VV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 9FD758048C28; Fri, 22 Sep 2023 12:38:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229762AbjIVTi0 (ORCPT + 99 others); Fri, 22 Sep 2023 15:38:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbjIVTiZ (ORCPT ); Fri, 22 Sep 2023 15:38:25 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC934AF; Fri, 22 Sep 2023 12:38:18 -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=TwghE0UWvedzbS9x4AhHOtwKLQCqsKJyy8dRVBG0BLM=; b=J+2aR6VVMtP3vyHszk4csseJuH cHY42l/HKolxgTYY1E1HcC6ojrTdLFolrI31cdR/vAFPJq3sYRWZ8odsSrTte74EyWyjpaq8ro1gY AqnjXNxiPbMV/Z7/4xU17R8I4yXrdHd0w54moXRI+LrEq1SJEVXPDCBOajVnyQyLFdw0ujB0remek l/oGsO8Gke0LF7eHik74oK+w314N7cqkDf9a6hIdyDCzDJWnkqGb9pDflISC2vW8t8jICY4fjfbAf Eh3DKfCJd8PMRQyZqo03OKf+6v6/PUahX0ytz3bluv7VVVKc6qO3HTaH/ZOd8an84LQPNFbQriI5c Tv5T5aMQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qjlyZ-002Tkn-BO; Fri, 22 Sep 2023 19:38:07 +0000 Date: Fri, 22 Sep 2023 20:38:07 +0100 From: Matthew Wilcox To: Dave Chinner Cc: Luis Chamberlain , Pankaj Raghav , Pankaj Raghav , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, da.gomez@samsung.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, djwong@kernel.org, linux-mm@kvack.org, chandan.babu@oracle.com, gost.dev@samsung.com, riteshh@linux.ibm.com Subject: Re: [RFC 00/23] Enable block size > page size in XFS Message-ID: References: <20230915183848.1018717-1-kernel@pankajraghav.com> <806df723-78cf-c7eb-66a6-1442c02126b3@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 22 Sep 2023 12:38:47 -0700 (PDT) X-Spam-Level: ** lOn Thu, Sep 21, 2023 at 04:03:56PM +1000, Dave Chinner wrote: > So there's clearly something wrong here - it's likely that the > filesystem IO alignment parameters pulled from the underlying block > device (4k physical, 512 byte logical sector sizes) are improperly > interpreted. i.e. for a filesystem with a sector size of 4kB, > direct IO with an alignment of 512 bytes should be rejected...... I wonder if it's something in the truncation code that's splitting folios that ought not to be split. Does this test possibly keep folios in cache that maybe get invalidated? truncate_inode_partial_folio() is the one i'm most concernd about. but i'm also severely jetlagged.