Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1187864lqa; Mon, 29 Apr 2024 00:12:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXkUePqjX9ukQ1iM9knVte9ecghy4slShy52mvt0w9TAYyNLpSlWHsl4GmFObM7l2w0CJkPrlRSr6T9UWh+jhoaqk0ea1hlYKVDqmZXMw== X-Google-Smtp-Source: AGHT+IFXLu0T6CgTwg/dY9mgNI0OgLBTZL+qDQw+Am5FxOHB5htgfK0NMDMGV1SqufAyvkCu3B5U X-Received: by 2002:a17:903:1110:b0:1e0:b562:b229 with SMTP id n16-20020a170903111000b001e0b562b229mr11106711plh.47.1714374741025; Mon, 29 Apr 2024 00:12:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714374741; cv=pass; d=google.com; s=arc-20160816; b=TUkuK0AaPiVAh4Qmthm2oBea5mv/Y1GM3TFmuhlyYd7uSuTzWJ/3tfQI9AdQF4uC5Z QTHhbCY1PhOvlorJ0iS7fze6RMun1Xmoxtlp7vg8hz95ZIyA6VPCHsgHz158koviYYrI r3sh5fK5oJ+YishhYsyXw/mILy4tXbmtqVQQiicbZHreXa/dYd3LOHOHHI29iUx7JMbZ ZzKa+RAdervmZLMsgUv594kAUyhsWv9t0wU8orWdJ+nY/uMtfEZPMEfQiSgx8Z8nzuq2 /ZPkPiigs4OUqBzGnSed9NQpCTMJtWfkgbpweBMP5Bg9zGEDa7S5HFzykk1JWtP1PGtY aniw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=aZLEwvGvb894iTC8qKnoXFMtmHsQey530DRehyO6gFE=; fh=oO9urCl7eJP2xBAA85azXSw7QBNylZRuJwxwIQWPjXI=; b=Y49HP7m/z6qsyRgR7JEAhxeJ7wZq4uED0h/rTsKUFXUJkVkdDTQFvQrZDHtwMuIb8l Z0ylbne5PWlL4YQM2qH7ZQaU78Vu0T4L3tyh2Pk9dxCCXUM/5OUTL4DEkn4RFA8pyC7/ 9RGvdi+MefNio4kyUEwNaAjvzZwYrKHVxcQ5hxVk1VnonI6I/LuAWCivHlgw2i/UcpeG jgJRba4jVXT0ovy2Z4oi9ZC4VMAUtyt0M29TyT9MCzwNzbYESdIhsuoeeYBcKIAAO+5G l7rs3mBMnOLRj7oyaLClFB6BI7kuU1PVXY1MavQtjT2u22mvO940LhDPLl+XGoCHKkk9 eOWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-161837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161837-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s24-20020a170902a51800b001e3c16c18d7si19135402plq.356.2024.04.29.00.12.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 00:12:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-161837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161837-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E45F6B20EC0 for ; Mon, 29 Apr 2024 07:12:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E51F14005; Mon, 29 Apr 2024 07:11:59 +0000 (UTC) Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) (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 917751079D; Mon, 29 Apr 2024 07:11:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714374718; cv=none; b=H/4RrAWL1WgEAq/aXCrYZuWi1mNIjMy33UzgM2y8QqAtIHUWS+dz8Cn0Y00pxV7pkAkbb7EfgunEYJPQMahQ5Q0u2i6Gb+DCtfGZOxbA4VvUhkDx59oO2Ybc8eC3DnpudgQFDihKCJu3EhpHZM5Y+6qJpQRi/+ljr08cw/bJwnc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714374718; c=relaxed/simple; bh=VrcNs7voZl2xbyNLKiAEs2ZgJnR3UJ/Zp71/jqId5Po=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=AzLTvnnLd7xfn45ZMBH1NgXLuUEWJ7KdBtmrIX7CzjgFNOG3WD/UMqHJQ+7sc0lhvsp4DO3I/BvjKgT9t8QKm3MIrOTjnOqsThpRdh2fg7Sf3b/vElTEfeA0lB1+NTg9oPQ1n400oheGSOvjDNBFT4NbmFFOC6J8HnizMUqePNY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com; spf=pass smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=45.249.212.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.163.235]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4VSZJF44Qpz4f3mHg; Mon, 29 Apr 2024 15:11:41 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.75]) by mail.maildlp.com (Postfix) with ESMTP id F3B691A0568; Mon, 29 Apr 2024 15:11:50 +0800 (CST) Received: from [10.174.179.80] (unknown [10.174.179.80]) by APP2 (Coremail) with SMTP id Syh0CgAXOQw1SC9mlDgXLg--.20275S3; Mon, 29 Apr 2024 15:11:50 +0800 (CST) Subject: Re: [PATCH v5 4/9] xfs: convert delayed extents to unwritten when zeroing post eof blocks To: Christoph Hellwig Cc: "Darrick J. Wong" , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, brauner@kernel.org, david@fromorbit.com, chandanbabu@kernel.org, tytso@mit.edu, jack@suse.cz, yi.zhang@huawei.com, chengzhihao1@huawei.com, yukuai3@huawei.com References: <20240425131335.878454-1-yi.zhang@huaweicloud.com> <20240425131335.878454-5-yi.zhang@huaweicloud.com> <20240425182904.GA360919@frogsfrogsfrogs> <3be86418-e629-c7e6-fd73-f59f97a73a89@huaweicloud.com> <5b6228ce-c553-3387-dfc4-2db78e3bd810@huaweicloud.com> From: Zhang Yi Message-ID: Date: Mon, 29 Apr 2024 15:11:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CM-TRANSID:Syh0CgAXOQw1SC9mlDgXLg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X-CM-SenderInfo: d1lo6xhdqjqx5xdzvxpfor3voofrz/ On 2024/4/29 12:41, Christoph Hellwig wrote: > On Sun, Apr 28, 2024 at 11:26:00AM +0800, Zhang Yi wrote: >>> >>> Oh well. Given that we're full in on the speculative allocations >>> we might as well deal with it. >>> >> >> Let me confirm, so you also think the preallocations in the COW fork that >> overlaps the unreflinked range is useless, we should avoid allocating >> this range, is that right? If so, I suppose we can do this improvement in >> another patch(set), this one works fine now. > > Well, not stop allocating it, but not actually convert it to a real > allocation when we're just truncating it and replacing the blocks with > reflinked blocks. OK, it looks fine, too. Thanks, Yi. > > But yes, this is a bigger project.> > For now for this patch to go ahead: > > Reviewed-by: Christoph Hellwig >