Re: [PATCH] btrfs: fix lost error handling when replaying directory deletes
From: Josef Bacik <josef@toxicpanda.com>
Date: 2021-10-14 17:23:51
From: Josef Bacik <josef@toxicpanda.com>
Date: 2021-10-14 17:23:51
On Thu, Oct 14, 2021 at 05:26:04PM +0100, fdmanana@kernel.org wrote:
From: Filipe Manana <redacted> 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). Signed-off-by: Filipe Manana <redacted>
Reviewed-by: Josef Bacik <josef@toxicpanda.com> Thanks, Josef