summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/backref.c
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@gmail.com>2013-07-30 12:03:04 +0100
committerChris Mason <chris.mason@fusionio.com>2013-09-01 08:04:43 -0400
commit395927a9d8e64af518c2ccdbfbbdf9184b558315 (patch)
treea42f503f5b3258b42069fa917db6aedb3def97a9 /fs/btrfs/backref.c
parent6596a9281995a3c7dee8ca6666bd169fffc928e1 (diff)
downloadop-kernel-dev-395927a9d8e64af518c2ccdbfbbdf9184b558315.zip
op-kernel-dev-395927a9d8e64af518c2ccdbfbbdf9184b558315.tar.gz
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>
Diffstat (limited to 'fs/btrfs/backref.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud