From: Josef Bacik Date: Mon, 17 Jun 2013 17:44:48 +0000 (-0400) Subject: Btrfs: optimize read_block_for_search X-Git-Tag: v3.11-rc1~70^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdf7c00e8f56386dd1df545b37cf59d55ce4216d;p=pandora-kernel.git Btrfs: optimize read_block_for_search This patch does two things, first it only does one call to btrfs_buffer_uptodate() with the gen specified instead of once with 0 and then again with gen specified. The other thing is to call btrfs_read_buffer() on the buffer we've found instead of dropping it and then calling read_tree_block(). This will keep us from doing yet another radix tree lookup for a buffer we've already found. Thanks, Signed-off-by: Josef Bacik --- Reading git-diff-tree failed