From 395927a9d8e64af518c2ccdbfbbdf9184b558315 Mon Sep 17 00:00:00 2001 From: Filipe David Borba Manana Date: Tue, 30 Jul 2013 12:03:04 +0100 Subject: [PATCH] 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-format-patch failed