Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3964920pxb; Mon, 1 Feb 2021 09:02:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxR8xMnJk0DzpjrXLDUOWFMWI1XmyZvi99o5pNVlUmllRjzaNOiWtb40L33d0GO/r6MZyVh X-Received: by 2002:a17:906:4a19:: with SMTP id w25mr18770735eju.153.1612198826855; Mon, 01 Feb 2021 09:00:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612198826; cv=none; d=google.com; s=arc-20160816; b=a/szg5d7d+Mr0bg5IQAemxg+huON2E0ttoA2W1h3ZJIrkC3L5ndyT0pCf+T9NkgLGc f+JZGKBJ7hb/AfRS15oH7qt2ydURVf4XjdvM+bo+5Gm+ZdBk82rihSdJA+8yaCcQVkol s7dLslZ1ENKsceOh3NavWBWst2Wh5c//u552vetxgrOY9AbDVBhoTHLW7ng/K+L5c0a3 AAPOGOVvz6STIiCeZRMhFi/NGrjjR5QNSN0F7HxDmwE2AU98l20B4WZt1B//M3HPS2mz z9KovlhB482pVT5Jk0Oz1Hd8dKf+Ms1HhLKDXxl1SuafBsPDgKYAZ7/EMVv3VP2XkjVl tMoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=/Rz3hycFvU+J4WUyt6/Ji3ZSPY41bRCdbCyDQ69dusY=; b=V6Pfb1X1V+pupOEynNB1Wfl7SAcNsf5PI/GrHxLZROc4Ub/VEEILzswZ0If/aQjXlu +XM/TKFVCSexqEsdrIZ8gWcqmhz0kPcbge6Se8b8hjqXsbTItIbrlAkV/h9zQv5LFKwD ImYRURIzNy1I8H9/N+uXYgdKZoHXbMfVI0KIL23vFPXklI3SrW3050OiUOvdpIZcK5bh I++2le9+sk23wQT2m/YSzDE2dJcAndiKSZEL9P/zXsVK3F+7vqp7t9VTU/0wJWZPW0tb 65AcPbHwf7fT134XcFkd5Qig6nWBNFxd0NoAGb/ukn9TDKgjpjJ+55ZFU/dcTmeg2ev5 n+5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bk4si11014543ejb.448.2021.02.01.08.59.58; Mon, 01 Feb 2021 09:00:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231646AbhBAQ74 (ORCPT + 99 others); Mon, 1 Feb 2021 11:59:56 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:54630 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231294AbhBAQ74 (ORCPT ); Mon, 1 Feb 2021 11:59:56 -0500 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 111GwwfD032019 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 1 Feb 2021 11:58:58 -0500 Received: by cwcc.thunk.org (Postfix, from userid 15806) id 2EEEB15C39D9; Mon, 1 Feb 2021 11:58:58 -0500 (EST) Date: Mon, 1 Feb 2021 11:58:58 -0500 From: "Theodore Ts'o" To: Christoph Hellwig Cc: Vinicius Tinti , Andreas Dilger , Nathan Chancellor , Nick Desaulniers , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH v2] ext4: Enable code path when DX_DEBUG is set Message-ID: References: <20210201003125.90257-1-viniciustinti@gmail.com> <20210201124924.GA3284018@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210201124924.GA3284018@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Feb 01, 2021 at 12:49:24PM +0000, Christoph Hellwig wrote: > DX_DEBUG is completely dead code, so either kill it off or make it an > actual CONFIG_* symbol through Kconfig if it seems useful. I wouldn't call it completely dead code. If you manually add "#define DX_DEBUG" fs/ext4/namei.c compiles without any problems. I believe it was most recently used when we added large htree support. It's true that it can only be enabled via manually enabled via manual editing of the .c file, but it's *really* something that only developers who are actively involved in modifying the code would want to use. Sure, we could add work to add debug levels to all of the dxtrace() statements, and/or switch it all to dyndebug. We'd also have to figure out how to get rid of all of the KERN_CONT printk's in the ideal world. The question is whether doing all of this is worth it if the goal is to shut up some clang warnings. - Ted