Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp645156lqh; Fri, 31 May 2024 11:46:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXxECxMhh+9SWrWBtIYlcOG/vI0pmptB6HWWR5PuxqwOHX63+9HR2z/VBbi1+9jnO4ezAB1itWo/TyK0ZBrSKXZqlyQE/XVbxz2FZUFrw== X-Google-Smtp-Source: AGHT+IFMfnHmyijUNjjmngjEHn4fVx3u2Czj/N5j/rTcPrC+BxTEGVeLvJw1tPn+/swDD79nfH6O X-Received: by 2002:a05:6a20:734e:b0:1b0:111f:2b7f with SMTP id adf61e73a8af0-1b26f2cbe4amr3240304637.39.1717181170234; Fri, 31 May 2024 11:46:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717181170; cv=pass; d=google.com; s=arc-20160816; b=lfgmWzQAnuC0MW3chUhAaZ34Q8U3BzFV+aVf/bTI+9UYvTYD4+GX8XGtHwtouIJ5k8 ra4sgDneSJL/2wud69lTl9bn3RtMI5ypIpjjgaeuVLVYbP5UJey6jib7E7n0zRbzv3dC 0ZjMMr7Gt4oPalvVh/q2lv4h7YDs/B7q6dxdZMjITI9Z1RATJ+NXLidpjXBE+QubZ5uQ eTXEU1wZC3Zg8mVUqkO+q6eSPlmzMhO6uRuC5aO1NXvGtOkw7sp7kreln6rPDBz7+mLq bU6jkeb9gXcMmUcn7etkzb8Y2jurHDyf1Z+rBXFaUvcDlZr/VlAOUG/e+IXj2iXw/hzd q6tg== 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=nez/jzPvJv9Aintcu3RZ3COXxw6jF9V/9ALZcl2RF5Y=; fh=4BKznwiqduZPiq0RoDrPOhdZPCzoDsEhb5t2lDF81JU=; b=Am5NCf+n+CtrH5bRiMTdcWwqDDCRceoYYh6G6TsKvLX6/RO8dxEFVeZDaYeMK9XV5o JK8iv/huNpPesnzqUoTFAsU8tdxum0WydLsY1UvlbYtWd7DshitKI1KdlTOSgNzX/7j6 /8ZJUX4q7pbcXimOih9GlvlUbOSIycm0QOPitmWCYwYihQYLKgqsFtJBC+tw5hW3k6wz VWPFFsIePzOdhq6AtdreuF2fRN2Ki7Ttd91vc3SWXMXLqej90XJ62ZoR9FO2W34xU8iV bSqBf0tI/FMStHpVRL5Eh34vVceUwIyl9sBMT/mcbyRq2K/kXeOK2TO/RBWoJeL8UlN+ RlYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="stGSz/LK"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-197132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197132-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35b40be56si1927908a12.454.2024.05.31.11.46.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 11:46:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="stGSz/LK"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-197132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197132-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5A3BB28598D for ; Fri, 31 May 2024 16:18:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D362715AAB6; Fri, 31 May 2024 16:17:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="stGSz/LK" 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 D95643D57E; Fri, 31 May 2024 16:17:52 +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=1717172274; cv=none; b=UBb2CDEY9x9rL7jvIIIqM/IbkOrVoL0+AEOffwPWiVxSg0RXLobS79YDVhaPNHCk+kZ7a07SEKDzBvMcFYytkh+LKAREoUas7NP1lfBJDZ94+Lwn4y5F2e8FDr0wgILOkvKixcDrnALFrh9K7JEapbNlbyti6Bt6UMftxDzjz20= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717172274; c=relaxed/simple; bh=vlldDds/fh09JBc7WVUVFuFOn32xy1JcFdVT445R33Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mb4KNV8KcgDcal3RJEJL132t4L9hncTvNflBYoKcgnMkgdC98FEmSe+Yk2cqJDaroAtyL2Cu3QNCf1C8Rwq08265Na72LBp7Gp22UUmBq7vcM5kqcGC1oEZj4A/yuyE+emZbFXmvB2E4GVUOpQWoOI9ZE8RoLkxDttwbkn4SNZc= 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=stGSz/LK; 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=nez/jzPvJv9Aintcu3RZ3COXxw6jF9V/9ALZcl2RF5Y=; b=stGSz/LKwiyNGVDT61NEq7ww4H m3UVCPdgFtRPNdP/L/DHJA8zNB1gxZ2trLgTB10psBhR9lKlN/arXp+LhCViU4QyDfYm5BTMll6gN 4KjfxrMbI0V8gtA3TIpfJ4ql/RnC2y6/W+KNkLRhzeg2rcZ3RnFw/lNsx54EbzLEPCnSEm101AmyN 25BYt9aT56J5NHBo8nI7lPmLe1d+Xrjak5u7Z6BFsAYTmtv2ggMZvBQGrz5G8RrN0Zg4M75sezwud 2ktaWrgM7+i8x3CpSPM05HU+rgnV8VK4NPGssegEPYmH6TAzyIJJn79YD6wMRHmdmp3AFPEej2Ajl TTH5RBCg==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1sD4wy-0000000AoKY-1dBu; Fri, 31 May 2024 16:17:52 +0000 Date: Fri, 31 May 2024 09:17:52 -0700 From: Christoph Hellwig To: "Darrick J. Wong" Cc: Christoph Hellwig , Zhang Yi , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, brauner@kernel.org, david@fromorbit.com, chandanbabu@kernel.org, jack@suse.cz, willy@infradead.org, yi.zhang@huawei.com, chengzhihao1@huawei.com, yukuai3@huawei.com Subject: Re: [RFC PATCH v4 7/8] xfs: reserve blocks for truncating realtime inode Message-ID: References: <20240529095206.2568162-1-yi.zhang@huaweicloud.com> <20240529095206.2568162-8-yi.zhang@huaweicloud.com> <20240531141000.GH52987@frogsfrogsfrogs> <20240531152922.GN52987@frogsfrogsfrogs> 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: <20240531152922.GN52987@frogsfrogsfrogs> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Fri, May 31, 2024 at 08:29:22AM -0700, Darrick J. Wong wrote: > > > > Sorry, it was meant to say for the data device. My whole journey > > to check if this could get called for the attr fork twisted my mind. > > I really hope not -- all writes to the attr fork have known sizes at > syscall time, and appending doesn't even make sense. It's obviously not. I just had to go out and actually read the code before commenting.