From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 13 Jun 2018 11:42:48 -0400 Subject: [U-Boot] fs: btrfs: Fix not all CHUNK_ITEMs being read from CHUNK_TREE In-Reply-To: <1528193461-14278-1-git-send-email-yevgenyp@pointgrab.com> References: <1528193461-14278-1-git-send-email-yevgenyp@pointgrab.com> Message-ID: <20180613154248.GD350@bill-the-cat.ec.rr.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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 > Cc: Marek Behun > Cc: Sergey Struzh > Reviewed-by: Marek Behun 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: