Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fs: btrfs: Fix not all CHUNK_ITEMs being read from CHUNK_TREE
This causes errors when translating logical addresses to physical: btrfs_map_logical_to_physical: Cannot map logical address <addr> to physical btrfs_file_read: Error reading extent The behavior of btrfs_map_logical_to_physical() is to stop traversing CHUNK_TREE when it encounters first non-CHUNK_ITEM, which makes only some portion of CHUNK_ITEMs being read. Change it to skip over non-chunk items. Signed-off-by: Yevgeny Popovych <[email protected]> Cc: Marek Behun <[email protected]> Cc: Sergey Struzh <[email protected]> Reviewed-by: Marek Behun <[email protected]>
- Loading branch information