summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2020-05-18 12:15:09 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-20 10:23:19 +0200
commit20fdc3da105de47486296a255c243844dad97199 (patch)
treef070b275124047cf7c8c989a0700a12a550b2c45 /scripts
parentea4f019105a00186f1770eeb5d0bd280cc6c7498 (diff)
btrfs: do not ignore error from btrfs_next_leaf() when inserting checksums
[ Upstream commit 7e4a3f7ed5d54926ec671bbb13e171cfe179cc50 ] We are currently treating any non-zero return value from btrfs_next_leaf() the same way, by going to the code that inserts a new checksum item in the tree. However if btrfs_next_leaf() returns an error (a value < 0), we should just stop and return the error, and not behave as if nothing has happened, since in that case we do not have a way to know if there is a next leaf or we are currently at the last leaf already. So fix that by returning the error from btrfs_next_leaf(). Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions