]> git.hungrycats.org Git - linux/commit
btrfs: scrub: fix lost error return value when scrubbing raid56 parity stripe
authorFilipe Manana <fdmanana@suse.com>
Thu, 15 Oct 2026 17:45:45 +0000 (18:45 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 30 Oct 2026 20:36:16 +0000 (21:36 +0100)
commit0bade584e95b90011860754273c11add4e1c6f77
treeed7c4a19b7f0a52bb642370579ce5c013572d2e8
parent174893116251f9dd8ff648190b8f60c5797db735
btrfs: scrub: fix lost error return value when scrubbing raid56 parity stripe

If we find errors we are returning the value of 'ret', which has a value
of 0 from some previous function call that succeeded, instead of returning
an -EIO error. Fix this by returning -EIO instead of 'ret'.

Fixes: fab0c0f03cfd ("btrfs: introduce BTRFS_PATH_AUTO_RELEASE() helper")
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c