From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 E6F413921ED; Fri, 23 Jan 2026 05:33:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769146411; cv=none; b=DYxhDuEjVSnc0bN+Y0wVz4rwCRSeUCJrl6A6la1tlMlF19k4Pq1d+G3Qa8Xf9X5zByqX94Afl+ODH9TcjnCf26VHZc2KIeSY1x6UMGIwUHv0ycfLrhlhHO7r8s0IMySZRE9TTSmvNE6MjPoyzlUPn3dgevCso7w8U5mZSw6My9A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769146411; c=relaxed/simple; bh=feINpxCb6vPK7KCsrsFhjPiqwiH8fQms8QdLTvJuuwA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qxcEZ/XKO4+vmJOqyHH4sAbXnXbwI74/wVHV828gfA8+X4u+FUaXpx/EHk7L34YvKggtLQoOmKvgRafVyLLIKb/cYivN7JulUsA5L9ST+vAX2qiX8zPwSTSzxAjgr5ewrQqtFqgTdTNNte1WMjOs2LqQuLOavVjXmIyrusZ7TZ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 88E1C227AAE; Fri, 23 Jan 2026 06:33:23 +0100 (CET) Date: Fri, 23 Jan 2026 06:33:23 +0100 From: Christoph Hellwig To: "Darrick J. Wong" Cc: Christoph Hellwig , cem@kernel.org, r772577952@gmail.com, stable@vger.kernel.org, linux-xfs@vger.kernel.org Subject: Re: [PATCH 1/4] xfs: check the return value of xchk_xfile_*_descr calls Message-ID: <20260123053323.GA24680@lst.de> References: <176897723519.207608.4983293162799232099.stgit@frogsfrogsfrogs> <176897723563.207608.1472219452580720216.stgit@frogsfrogsfrogs> <20260121070323.GA11640@lst.de> <20260121182208.GH5945@frogsfrogsfrogs> <20260122055748.GA23964@lst.de> <20260122185701.GO5966@frogsfrogsfrogs> Precedence: bulk X-Mailing-List: stable@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: <20260122185701.GO5966@frogsfrogsfrogs> User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, Jan 22, 2026 at 10:57:01AM -0800, Darrick J. Wong wrote: > > > Alternately we just drop all the helpers and kasprintf crap in favor of > > > feeding the raw string ("iunlinked next pointers") all the way through > > > to shmem_kernel_file_setup. > > > > But wouldn't we get duplicate names for different inodes? > > Yes, but that's only used for readlink of /proc/$pid/fd/* so (AFAICT) it > makes tracing more confusing but doesn't affect functionality. > xfs_healthmon just passes in "xfs_healthmon" and I can run healers on > multiple filesystems just fine. > > anon inodes are ... uh ... magic. Ok, that certainly would simply things a lot, and I'd be ok with it. My ideas didn't really work out. The last idea I had was to be able to specify a prefix in a new method in struct xchk_meta_ops, but this starts to feel like severe overengineering.