]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bcachefs: Fix error type in bch2_alloc_v3_validate()
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 10 Mar 2025 19:20:29 +0000 (20:20 +0100)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 15 Mar 2025 01:02:15 +0000 (21:02 -0400)
Use error type alloc_v3_unpack_error in bch2_alloc_v3_validate().

Fixes: b65db750e2bb ("bcachefs: Enumerate fsck errors")
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c

index ecad4a78c3f719ec953fcbc068ba583b30c5413d..4dfcf3e6fffda85303d5b4c3cb4cfb58ebb51e2d 100644 (file)
@@ -232,7 +232,7 @@ int bch2_alloc_v3_validate(struct bch_fs *c, struct bkey_s_c k,
        int ret = 0;
 
        bkey_fsck_err_on(bch2_alloc_unpack_v3(&u, k),
-                        c, alloc_v2_unpack_error,
+                        c, alloc_v3_unpack_error,
                         "unpack error");
 fsck_err:
        return ret;