aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2021-10-14 16:26:04 +0000
committerDavid Sterba <[email protected]>2021-10-26 17:08:06 +0000
commit10adb1152d957a4d570ad630f93a88bb961616c1 (patch)
treeb910f37d699adcdca903afcd16c0e33ce2c9eee7 /fs/btrfs/dev-replace.c
parentbtrfs: remove btrfs_bio::logical member (diff)
downloadkernel-10adb1152d957a4d570ad630f93a88bb961616c1.tar.gz
kernel-10adb1152d957a4d570ad630f93a88bb961616c1.zip
btrfs: fix lost error handling when replaying directory deletes
At replay_dir_deletes(), if find_dir_range() returns an error we break out of the main while loop and then assign a value of 0 (success) to the 'ret' variable, resulting in completely ignoring that an error happened. Fix that by jumping to the 'out' label when find_dir_range() returns an error (negative value). CC: [email protected] # 4.4+ Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions