btrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks()
The unhandled case in btrfs_relocate_sys_chunks() loop is a corruption, as it could be caused only by two impossible conditions: - at first the search key is set up to look for a chunk tree item, with offset -1, this is an inexact search and the key->offset will contain the correct offset upon a successful search, a valid chunk tree item cannot have an offset -1 - after first successful search, the found_key corresponds to a chunk item, the offset is decremented by 1 before the next loop, it's impossible to find a chunk item there due to alignment and size constraints Reviewed-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
parent
a6724290
-
mentioned in commit bebd9e0f
-
mentioned in commit 87299cda
-
mentioned in commit d1ffa4ae
-
mentioned in commit 576164bd
-
mentioned in commit 36c2a286
-
mentioned in commit 0d23b34c
-
mentioned in commit 1f9212cd
-
mentioned in commit c5ee5f18
-
mentioned in commit 25090e9b
-
mentioned in commit e42004fd
-
mentioned in commit 0222448b
-
mentioned in commit 6ffbcb37
-
mentioned in commit c48ab6a4
-
mentioned in commit 791d236a
Please register or sign in to comment