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

2018-06-05 Thread Marek BehĂșn
Hmm, for some reason there are some items with objectid=0 and type=0 betwenn CHUNK_ITEM_KEYs, and thus the reading breaks before reading all items. I am not sure if this is an error in our driver or there really are such items, but yout patch solves this. Reviewed-by: Marek Behun On Tue, 5 Jun

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

2018-06-05 Thread Yevgeny Popovych
This causes errors when translating logical addresses to physical: btrfs_map_logical_to_physical: Cannot map logical address 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