Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp272828lqg; Thu, 11 Apr 2024 02:17:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQHc9mmUp9Qc3q7b4lNdKpRLohB/hYuLaRK4tYOyV5Y5sPYjQvdNmsk6+8C+qF7D6zc4o6VT/18U6aB0tKIpzkI8QP80buioGIB5vL1w== X-Google-Smtp-Source: AGHT+IFrjJ9wEeTstBzgJ15WZT8+PJ8N+axPkcAN8Dx2HAImbshY+rrQWtM/ukLcmMREpo8Dd63R X-Received: by 2002:ad4:4201:0:b0:69b:457c:654a with SMTP id k1-20020ad44201000000b0069b457c654amr1781915qvp.45.1712827035578; Thu, 11 Apr 2024 02:17:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712827035; cv=pass; d=google.com; s=arc-20160816; b=OEFESTaaLJw492HUimL5tPOfDzNJeiqdf727nIgm85OimGqXgaK5u+3UGSz96unwP+ +R5UqXdQnnxPZij5Clrk0QjSPBBzdUsLb3JZ3DW3lOkoYGs8vWuO+fQCLXm6X1PihRQX nN8hC+MMJgOXn1DEx+JWBGd1avy9LkjcjbjGMNwRTCm/FUkHIZ8VsbDW3BN4NERB6dHe mrU+OuWaQupbr+ztvUeQPYhEhFSoUgTsyQT04KWnFUH/3+EGCQYQCaIZjVFhDVxlC2d8 K1kbFgKUc2zesJkN5PNQCOwhbV4z61YHykvTp8ZELGsibcq0SxlJ2IPkSxJlNcdCekUT /v/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=VN2Fp3bu6cOjIlKvAf7724aSrQ1G26WfwgetglsZSHU=; fh=4DcEITL9Bb8u9oZaylvg/nAiwBs4uW4Fi/8VLvU5xWs=; b=Wd0JTYGV9+wGbIAfFSCmwrIDIVPvQX5Fnxv8vv3fiBV2C1xh/y+tqDj67BIaa22XR/ jwCIhrouzdUpWvMLKtmmbuokW3uWyTBru14Db6H8rLk8UYZRaSJVc2sti5m1ZQwKX/H8 d7joPK2XEY80sqfVounCtyDFzjoubgj0K3JHV7AofRZ1n+L2TyDi4/d5vo55GJX/msmZ BxVwRVdP6DXhhnc7MlhSGZ6+HhLf0nlzgtWsxbwRmiOoUKTWokjTaqJdMO4oBxivcGIJ hQARhBSZHhmDSyyXM+k7UM1DDm+MznYjiGB8xdLTrtQssFarzq3bXyjiS7Uu160mcLgD OcLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-140152-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y9-20020a056214016900b00699009d380asi1082415qvs.82.2024.04.11.02.17.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 02:17:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140152-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-140152-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4691E1C23656 for ; Thu, 11 Apr 2024 09:17:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD779144308; Thu, 11 Apr 2024 09:17:05 +0000 (UTC) Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) (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 A1436143C51; Thu, 11 Apr 2024 09:17:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.35 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712827025; cv=none; b=PzS36SrMjDSiquqxBwRbpIXthvo7uuKQSIZOw2rMeg8Nsn4aZzp7dkbb0TE0nlTUC1f4CCFWjqXy6oicxxPZK5v0fVVH0AuhxmArJwORqKTdPafKLJeDE0DhqOmMTmB9lAPDMnOYAJC5knzYmyyV6rAd+NcRZEvW7Ly79R+k1oU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712827025; c=relaxed/simple; bh=l0t4D9s2/1QlWcjfS0uDVRP8x3YMT80ZWdmTgsPw7g8=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=sUmBoTs2YiEMzPeuaKxKnrwZ7Y3MibGBJu1o/RxPEqlEp3xy7NUoT8bfDvdWUghScgRm+SnRN91jylkgfTkZuAjCymQoFhjTOxD67iaja/yPL7+JzbQx9Tq3moEHJK6WeWXjAv7H2eiSxJAYa9eFI2tNFLkoZmJZStRC7pI+VEg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.44]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4VFYsq0pNNz1RC7f; Thu, 11 Apr 2024 17:14:07 +0800 (CST) Received: from dggpeml500022.china.huawei.com (unknown [7.185.36.66]) by mail.maildlp.com (Postfix) with ESMTPS id 2F2AD1400C9; Thu, 11 Apr 2024 17:17:00 +0800 (CST) Received: from [10.67.111.104] (10.67.111.104) by dggpeml500022.china.huawei.com (7.185.36.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 11 Apr 2024 17:16:59 +0800 Message-ID: <11712bdc-9119-4ad2-b4ac-f6e2d0730134@huawei.com> Date: Thu, 11 Apr 2024 17:16:59 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] bcachefs: fix typo in reference to BCACHEFS_DEBUG Content-Language: en-US To: Lukas Bulwahn , Kent Overstreet , Brian Foster , CC: , , Lukas Bulwahn References: <20240411082931.56362-1-lukas.bulwahn@redhat.com> From: Hongbo Li In-Reply-To: <20240411082931.56362-1-lukas.bulwahn@redhat.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500022.china.huawei.com (7.185.36.66) On 2024/4/11 16:29, Lukas Bulwahn wrote: > Commit ec9cc18fc2e6 ("bcachefs: Add checks for invalid snapshot IDs") > intends to check the sanity of a snapshot and panic when > BCACHEFS_DEBUG is set, but that conditional has a typo. > > Fix the typo to refer to the actual existing Kconfig symbol. > > This was found with ./scripts/checkkconfigsymbols.py. > > Signed-off-by: Lukas Bulwahn > --- > fs/bcachefs/snapshot.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/bcachefs/snapshot.h b/fs/bcachefs/snapshot.h > index b7d2fed37c4f..3fdb41b33d2d 100644 > --- a/fs/bcachefs/snapshot.h > +++ b/fs/bcachefs/snapshot.h > @@ -77,7 +77,7 @@ static inline u32 __bch2_snapshot_parent(struct bch_fs *c, u32 id) > return 0; > > u32 parent = s->parent; > - if (IS_ENABLED(CONFIG_BCACHEFS_DEBU) && > + if (IS_ENABLED(CONFIG_BCACHEFS_DEBUG) && > parent && > s->depth != snapshot_t(c, parent)->depth + 1) > panic("id %u depth=%u parent %u depth=%u\n", Reviewed-by: Hongbo Li