From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796045828; b=ApGkZmZKUDnjVPQ0wA1b+kBZblg/TTzYRaOoEJ5Uns7u2HJ7YsVrt4t2QM32o6dUTTEp DitWmYXYr54NORk1EzRLM6t2ElXOAB51WaE30mViewrDunqZOenX6PRebeeOEKZaL4aVQ WCg7lMifl3aVeIGbDnazOIGx/xii2iVjdwDqNHi2PJT/iMAyObi96I6m9PcpWHCJGH+cp fSfrohZVi9XN5TianCEEtBIDYUEzD2OR9GTVkDdxtX+JFtgQXaA84rLOthAZSBzbXOWA8 UlktVR0/MNI2V3cjLafUlJSV4Z9Tol2Bq+cCqtYexOKvMZukEI/IKIQgpU/ESWKUYbg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796045828; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=wReU/aVl2ZXJNA1HF99lyekPT/3AChWk7jPqxxfeXDI=; b=cJGQXW3QGEc9sY8mDZgXta537y1Jo36SKjoldqdBnSdz9cbUdeLIKpR8d4nHGm/c02CN /fLP6WNWNDu7fWKGcxLsvSP6iPTbTdEdou/GMg2Hyv/Sho6IwHpe6BakxYNubvmw1OcgO y43Jcq0QlkCkEYMTy2111Gul6xWeXgz9sMsT9ZVbcZOKm0HnqAM2XzuZlRdGN5LO7bCut xuoI83P/Ec8yVsn2WXY+wpfoZXxpenr0Xtt0knEFJtAS9GN0ejbFtstqJxg3Cnm6A6KXX gCaUU7ei2DMH1wekyzsvael/VJ5TAfd4xxfOtrsSoyFIuPqNHoSRFKtAVcx22IxsRSQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=hK0AVPaT; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 473F8606A31C; Mon, 30 Nov 2026 13:37:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=hK0AVPaT Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45A771F000C1; Mon, 30 Nov 2026 13:37:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796045827; bh=wReU/aVl2ZXJNA1HF99lyekPT/3AChWk7jPqxxfeXDI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=hK0AVPaT43NeICvUlOztze53eJNIbL7uqxdGfbStRiWsb2BeZbTiXhWb7Lf6LmsEm 57kYO6adNzdXZoPTDDXHlJOpbZFsaMjRfqVdOHRDuRz1wNKFzYY/sjZqR3PH+j2Nnb +Ts3FPxdMjOeBvDsgI8/GaxQhpoZ9ifULZ6JGCsl7kPS/Q1UB8Kn1DZYsiDQIoXlcl Zn9AGlZR/7cNmhoxd8D5ygJyJpcIKjQGUc30j+xabss4FAygvX9iYA2Q7ReNqIy5kJ /OGA6zm+QYtSxfuMoH7nZS0/NzdPmptenwvJS8C0sRL7OQKDsfUSxyjQNOPD+Hf2dx UKexObM5s/zVQ== Date: Mon, 30 Nov 2026 14:37:01 +0100 From: Carlos Maiolino To: Zizhi Wo Cc: Christoph Hellwig , dgc@kernel.org, djwong@kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, yangerkun@huawei.com, chengzhihao1@huawei.com, wozizhi@huawei.com Subject: Re: [PATCH V2] xfs: remove duplicated lines Message-ID: References: <20261126135947.2820748-1-wozizhi@huaweicloud.com> <20261130125256.GA27971@lst.de> <86f04f98-36b4-48d3-9ee9-f4545c53bfd1@huaweicloud.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86f04f98-36b4-48d3-9ee9-f4545c53bfd1@huaweicloud.com> On Mon, Nov 30, 2026 at 09:19:34PM +0800, Zizhi Wo wrote: > Hi, > > 在 2026/11/30 20:52, Christoph Hellwig 写道: > > On Thu, Nov 26, 2026 at 09:59:47PM +0800, Zizhi Wo wrote: > > > From: Zizhi Wo > > > > > > Remove duplicated lines: > > > - xfs_ondisk.h checks the size of struct xfs_attrlist twice. > > > - xfs_rtgroup.h declares xfs_rtginode_irele() twice. > > > > These look entirely unrelated, why combine them into a patch? > > I squashed them together because when I sent a similar dead-code cleanup > series earlier this year [1], Carlos suggested that trivial removals > like these don't really need to be split per-file and could live in one > patch. I took that as the preferred style for this kind of change. > > Carlos, do you still feel the same way here, or would you rather I split > this into two patches in v3? I'm fine either way. > > [1] https://lore.kernel.org/all/aprh7OnJPCL-iIIK@andromeda.toxiclabs.cc/ Yes, that's on me. I don't see the point of removing dead code in different patches unless there is a very good reason to do so. This patch though has a slightly different goal than the series you mentioned before though. This is not removing dead code but duplicated code added by mistake. Which is not really dead codes as it's code executed by the cpu (well, one hunk)... But again, I particularly don't see a reason to split those in different patches, unless Christoph thinks otherwise. > > > > > > Fixes: 650b774cf944 ("xfs: add static size checks for ioctl UABI") > > > Fixes: 6b08901a6e8f ("xfs: add realtime reverse map inode to metadata directory") > > > > and no, removing dead lines is not a fix in the Fixes: tag sense. > > Understood. I didn't add any fixtags in v1 since I considered this a > pure cleanup, but Carlos asked me to add them during the v1 review [2], > which is why they showed up in v2. > > Carlos, could you clarify how you'd like this handled going forward? I'm > fine either way too... > > [2] https://lore.kernel.org/all/awgy2d_SbrvHtvkI@cronus.toxiclabs.cc/ Yes, that's on me too. I consider the duplicated lines a bug during the implementation, but, perhaps my understanding of the Fixes: tag was too literal, so leave it out as Christoph suggested. If Christoph doesn't bother with both changes belonging to a single patch, I can remove the Fixes: tag at the time I pull the patch. If he prefers you to split it into two patches, then on next version you send them without the Fixes:. Cheers. > > > Thanks, > Zizhi Wo > >