bcachefs: fix typo in reference to BCACHEFS_DEBUG
authorLukas Bulwahn <lbulwahn@redhat.com>
Thu, 11 Apr 2024 08:29:31 +0000 (10:29 +0200)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 8 May 2024 21:29:19 +0000 (17:29 -0400)
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 <lukas.bulwahn@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/snapshot.h

index b7d2fed37c4f31167fe036bb9967ac084c733edf..3fdb41b33d2d2f8d0372957210f85727dd10789c 100644 (file)
@@ -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",