[U-Boot] fs: btrfs: Fix not all CHUNK_ITEMs being read from CHUNK_TREE

Tom Rini trini at konsulko.com
Wed Jun 13 15:42:48 UTC 2018


On Tue, Jun 05, 2018 at 01:11:01PM +0300, Yevgeny Popovych wrote:

> 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 <yevgenyp at pointgrab.com>
> Cc: Marek Behun <marek.behun at nic.cz>
> Cc: Sergey Struzh <sergeys at pointgrab.com>
> Reviewed-by: Marek Behun <marek.behun at nic.cz>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180613/799ac981/attachment.sig>


More information about the U-Boot mailing list