Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp710500lqs; Fri, 14 Jun 2024 03:33:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXV/0hTxAc3nu0k7fNmgtTPd+Ud5NO1hwWRegrc/xkXHfNYkJ5DOJSdFqDUN+E0kloM7r7AESoVO0M6UkxOyvK97VmNjAF1in9PRkTKXw== X-Google-Smtp-Source: AGHT+IEIO4cHCS7A+wvkfvF09E66WjccZ+rLDv6DSJ/W1aBL7KOAORxO2jZINl9XutMYrlRUBSex X-Received: by 2002:a17:906:2351:b0:a6f:287e:ef6b with SMTP id a640c23a62f3a-a6f60dc89f8mr140386066b.61.1718361206869; Fri, 14 Jun 2024 03:33:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718361206; cv=pass; d=google.com; s=arc-20160816; b=Ld9MsYU8NVEqqxBKaMcbjtlyltyVRmQNuY6A8Ix4aReJtP0JWZtrsFLnQVo3fvhT8I Sq6a2TYBqKPy+6xNqfL/7i71NhU/eQwVlA9EnaSylk8yX/VX9y+7dRkYYrbwW+WmRo3E b/n65e9IvUByhp2FJC1jmEIS65tpHN13ZRU5r3LJhFIp4kNa13FU5mfYSF0q3n9C98e2 tWaW3TSj1kgcgwbvs2wWp1huoyluzedFB/MdQiNjO/8PJF5ItKbGfSwPEbLFIJTdDYTw 7a54x6ZCi6m6QGoWyyx84OGfGpwq/tBg67BP7UEPhkpp+Q5SH+EaqafNvVIKFmz67vCq wtew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2FLvUNKmUUOI9oGFN4S5Yxt9b1DL4nZ5rhrTKzw0Pbg=; fh=vwPZGdkpz4F0WB1Ij9xySblN4uHPtFv+UwaoIxZl3es=; b=LrTxKMKn9nWx0ual6CYWFhwwV5gydwDbsJeAKzWRe8jL9dWfb2Huf6VH06CzDBpoHq xqCKvEujyJ3ooJrLiAE4yRDCItkJiPQgwrWLNg8EkR9DF+pGdTrCnyPGcy6hyvIy8VO8 j2S3qBL2pkdzAviFyaPFi9Vb+rFjp42181qS3pZ1O+1SsnKN3f2jtvNlInqdOk3+Ont6 FYrUp2d4nBNhArCL7TrEKL9G/Dv2+CHvPqSHo3b5gzz+I0i6I30KRs/TTNjd9KJVS3L0 j+60MTEnmDOlH5rCGt/exOfX2qOn69UcDG3OTC1Sflp/gn8AE1xBR1a+Oy11HCd78W3L 5b5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=loIp9n8s; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-214617-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214617-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56d2170fsi161079466b.102.2024.06.14.03.33.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 03:33:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214617-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=loIp9n8s; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-214617-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214617-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6AD811F222FF for ; Fri, 14 Jun 2024 09:13:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFA681922DA; Fri, 14 Jun 2024 09:13:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="loIp9n8s" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 292A75FBB7; Fri, 14 Jun 2024 09:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718356413; cv=none; b=WydwDLdYJtGFjvsKosgTFdB+dialW8x389hAEg6IVv0AxX4phdbAwL+6DBT3zBS5sALWvNlUVZULvrCcbWwPwC7o8cUiQzNVB73hZgR66QBhtiGWLSdZCZZ/a8roxZp3wHomPlV5PjTRqyqKZgYfnPerxxGAI+cEjZrsAbki/Po= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718356413; c=relaxed/simple; bh=WysQkcsjHsZaBSJnIBgs479ThPkkcLzyNfHVNY3NAwE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TxPMRif8lsgkz0+DbovfejY6J8oCMjyzOrVEwxD1hkIA45EP7YeMoH5HD9NYeyyIcqdkZRWTLCo2ZgKsfuoDHBovgxGYRduMyqUOv0t6nvVK8oCkhuuRLHW2B0FFkElPa3IJ7trZ89bVcK8c2vlf7CdwE+VnxiGjVpSNgq/9cnw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=loIp9n8s; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org 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=2FLvUNKmUUOI9oGFN4S5Yxt9b1DL4nZ5rhrTKzw0Pbg=; b=loIp9n8s3in8Fncb4yXeksH5pb JHfIfqs8ikcnros3eS6WxI/BtagbryOeQX4DrzmsD+/Pv724JvM57Kb+DC888DvrERtK+z0sISV0q MmtST+wywd3Yq8rXR2ZKG5ZcY4MSMQJ+2sslNKRZh4WCqhlKIEN9Ha34UN81sekZmlFU80ngqPbcv ZOMqQLiLPUdrVvLfs0JeelkDgAnP76bVzCyj8YKcRUYJiX/N5HCaiL61IaVaIVxSwnCgVizd+qrW4 FYFAh9626pkN2QpwNX+scOXldavm+DoxfAyL6W1TbBCgOiGQXvYc3q60Nfa+3oHRBXXIyfubIal34 irmevVWg==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1sI2zy-000000028xX-2zBc; Fri, 14 Jun 2024 09:13:30 +0000 Date: Fri, 14 Jun 2024 02:13:30 -0700 From: Christoph Hellwig To: Zhang Yi Cc: Christoph Hellwig , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, djwong@kernel.org, brauner@kernel.org, david@fromorbit.com, chandanbabu@kernel.org, jack@suse.cz, yi.zhang@huawei.com, chengzhihao1@huawei.com, yukuai3@huawei.com, John Garry Subject: Re: [PATCH -next v5 7/8] xfs: speed up truncating down a big realtime inode Message-ID: References: <20240613090033.2246907-1-yi.zhang@huaweicloud.com> <20240613090033.2246907-8-yi.zhang@huaweicloud.com> <399680eb-cd60-4c27-ef2b-2704e470d228@huaweicloud.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <399680eb-cd60-4c27-ef2b-2704e470d228@huaweicloud.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Fri, Jun 14, 2024 at 03:18:07PM +0800, Zhang Yi wrote: > Thanks for your suggestion. > > Yeah, we could fix the realtime inode problem by just drop this part, but > for the upcoming forcealign feature and atomic feature by John, IIUC, we > couldn't split and convert the tail extent like RT inode does, we should > zero out the entire tail force aligned extent, if not, atomic write could > be broken by submitting unaligned bios. Let's worry about that if/when those actually land. I also see no rason why those couldn't just use partially convert to unwritten path offhand (but without having looked into the details).