btrfs-progs: propagate extent item errors in lowmem mode

Test 044 was failing with lowmem because it was not bubbling up the
error to the user.  This is because we try to allow repair the
opportunity to clear the error, however if repair isn't set we simply do
not add the temporary error to the main error return variable.  Fix this
by adding the tmp_err to err before moving on to the next item.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Josef Bacik 2021-08-18 17:33:16 -04:00 committed by David Sterba
parent 477775946d
commit c3521f8a57
1 changed files with 1 additions and 0 deletions

View File

@ -4381,6 +4381,7 @@ next:
goto next;
}
err |= tmp_err;
ptr_offset += btrfs_extent_inline_ref_size(type);
goto next;