Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp274211lqg; Thu, 11 Apr 2024 02:21:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLxpSALIdBbpsgjyYYEbkNdt4xIns9fWg1hKj9RfacdCUx1hSDzOJrQTcF93M96L4iSPLV1RpT5blqcA+j6TsrgFaxTf9PPvyso1NNFQ== X-Google-Smtp-Source: AGHT+IGVMsg9gsZ/EX99Uqsvp/h+dI6/jwUiP0CFvgjydtfbMJjqmEJV2SeVXbX62FJOwF5vKx3+ X-Received: by 2002:a19:690a:0:b0:517:5ee6:4f59 with SMTP id e10-20020a19690a000000b005175ee64f59mr3990853lfc.41.1712827279178; Thu, 11 Apr 2024 02:21:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712827279; cv=pass; d=google.com; s=arc-20160816; b=YmiizdVFKokDhbyq8eQdjUuZRpIOhziyKZ+zrsRrXw94Lb0RF+2/PYdd5iqLDJFn0c znkzZtmmLYxSi3BH86LoB9zEfNA5BOu511d2BO+qabss3k7zf6coYJH/ozuxdCxPjSfj DhOEV9Fdu6l4exhnDkZdD2rddaHa1Jii4PT28AuazEj2acU9t9ADPlLux7lgJhEqUGZi ZgYEIIj/5XCjh5tid8KVuHyhMe7KLoyU/LC+ZKhu3Vk/19FRYjUKOa79NyQ1IGZXmqNA DBM04ZCq4rNtLBhImIg92BIrq7lWW4r1GgRtf9KDU5pTXt8sh/mRURA0VSsWgw8k0+6L 4JSA== 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=U3Ruaeh1J7N7VSvoLZ3JlBAO+nUR7+aIJqOs0+hzO3U=; fh=4DcEITL9Bb8u9oZaylvg/nAiwBs4uW4Fi/8VLvU5xWs=; b=GaFA3UbT0H4EBC4ovBs4VC6ImpNym6jNs92XEChXEnUJf7aXBoSBOsFbELM9ALwujh ryvfV5DDw4TpPAUj2JmafyukfRp5pzvQu0758VQmq9B113lqtlHyCGA/I6ZMXUbfV9RC LbtXPPgh9nJ7pVQID/S9/psPQOL9GlWCtRk9iBcU2THuAaBulHHC5kpyW5MlbNUM/4W8 hy3n/kKWxYxaduKjzv0vddiOWF1A98sivIhvvHlBA8/DHTC+FP5NV+04M8FiuSC8VRID TvwUin4pggzXA14jFSW6muhLjLu2+d+iYffHwWOAuvC0QOvxPUaxbEMEcusVwDJdGKeS HzZg==; 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-140160-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140160-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d18-20020a170906175200b00a46c39976ffsi554676eje.500.2024.04.11.02.21.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 02:21:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140160-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-140160-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140160-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A533D1F21841 for ; Thu, 11 Apr 2024 09:21:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 458031448C0; Thu, 11 Apr 2024 09:21:10 +0000 (UTC) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (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 D228913CF91; Thu, 11 Apr 2024 09:21:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712827269; cv=none; b=ESmaZFOEtddNHc5Ir1j+xTABqpG9V2xfrP/O+3u0Sq3oy1bEuoEcxRTl5R2wm+ZK2m/zOmiFmUrUeQd9cactEFm+/4Pp6VJIf7DiZEjmuaC+s6aJbvbEqcN0DrZHj5FGcle91ejtjH9lytUXwvP83K8Ete/q5e2UIlRbD7CIvX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712827269; c=relaxed/simple; bh=vMip6sgICuC04GvZbjwcdVeG7Rk0YTkyr5l+fJFWK7o=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ifDd2iN/NpKW4DtGUeecz6+So1+KyeGXB911bg1+jII4U2PMmkp4mbmRfGxb/3RxS5Q+Okq4KHBS6d6KJ0F7jyIz9EU2yt7KhMByKvqi4P0m3AIHg5tpZGukXxCxXtY8+a88Uk1W1+AxNBG/PLih2BjnhwQ7VfRx8J/2ZNDWBnM= 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.187 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.174]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4VFYyh755wztSJc; Thu, 11 Apr 2024 17:18:20 +0800 (CST) Received: from dggpeml500022.china.huawei.com (unknown [7.185.36.66]) by mail.maildlp.com (Postfix) with ESMTPS id A58E2140156; Thu, 11 Apr 2024 17:21:05 +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:21:05 +0800 Message-ID: Date: Thu, 11 Apr 2024 17:21:05 +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) Also, I am curious why such spelling errors cannot be detected at the compilation stage. 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",