]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: optimize function btrfs_read_chunk_tree
authorFilipe David Borba Manana <fdmanana@gmail.com>
Tue, 30 Jul 2013 11:03:04 +0000 (12:03 +0100)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:04:43 +0000 (08:04 -0400)
commitdb4bc290b5173e202a3e01b3888a08bda0cda3bc
treea42f503f5b3258b42069fa917db6aedb3def97a9
parent809abd7efcbaf681b0823cc853d70faf7a03f3b5
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 <fdmanana@gmail.com>
Reviewed-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/volumes.c