From: Filipe David Borba Manana Date: Tue, 30 Jul 2013 11:03:04 +0000 (+0100) Subject: Btrfs: optimize function btrfs_read_chunk_tree X-Git-Tag: v3.12-rc1~40^2~82 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=395927a9d8e64af518c2ccdbfbbdf9184b558315;p=pandora-kernel.git Btrfs: optimize function btrfs_read_chunk_tree After reading all device items from the chunk tree, don't exit the loop and then navigate down the tree again to find the chunk items. Instead just read all device items and chunk items with a single tree search. This is possible because all device items are found before any chunk item in the chunks tree. Signed-off-by: Filipe David Borba Manana Reviewed-by: Miao Xie Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed