[PATCH] bcachefs: Fix error type in bch2_alloc_v3_validate()

Thorsten Blum posted 1 patch 11 months ago
fs/bcachefs/alloc_background.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] bcachefs: Fix error type in bch2_alloc_v3_validate()
Posted by Thorsten Blum 11 months ago
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>
---
 fs/bcachefs/alloc_background.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/bcachefs/alloc_background.c b/fs/bcachefs/alloc_background.c
index ecad4a78c3f7..4dfcf3e6fffd 100644
--- a/fs/bcachefs/alloc_background.c
+++ b/fs/bcachefs/alloc_background.c
@@ -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;
-- 
2.48.1
Re: [PATCH] bcachefs: Fix error type in bch2_alloc_v3_validate()
Posted by Kent Overstreet 11 months ago
On Mon, Mar 10, 2025 at 08:20:29PM +0100, Thorsten Blum wrote:
> 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>

Thanks, applied

> ---
>  fs/bcachefs/alloc_background.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/bcachefs/alloc_background.c b/fs/bcachefs/alloc_background.c
> index ecad4a78c3f7..4dfcf3e6fffd 100644
> --- a/fs/bcachefs/alloc_background.c
> +++ b/fs/bcachefs/alloc_background.c
> @@ -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;
> -- 
> 2.48.1
>