aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2023-09-08 18:20:32 +0100
committerDavid Sterba <dsterba@suse.com>2023-10-12 16:44:06 +0200
commiteba444f1c0ecaf4a1992fb40a2c9e7a8cb3fdd5d (patch)
tree00ba6f2a65f009c06d567dc6655e5c320032680d /fs/btrfs/dev-replace.c
parentcc925b9646b4d91dd2536bf7c5ec0dee103fd341 (diff)
downloadlinux-eba444f1c0ecaf4a1992fb40a2c9e7a8cb3fdd5d.tar.gz
linux-eba444f1c0ecaf4a1992fb40a2c9e7a8cb3fdd5d.tar.bz2
linux-eba444f1c0ecaf4a1992fb40a2c9e7a8cb3fdd5d.zip
btrfs: return -EUCLEAN if extent item is missing when searching inline backref
At lookup_inline_extent_backref() when trying to insert an inline backref, if we don't find the extent item we log an error and then return -EIO. This error code is confusing because there was actually no IO error, and this means we have some corruption, either caused by a bug or something like a memory bitflip for example. So change the error code from -EIO to -EUCLEAN. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions