From: Filipe Manana Date: Wed, 12 Feb 2014 15:07:52 +0000 (+0000) Subject: Btrfs: remove unnecessary ref heads rb tree search X-Git-Tag: v3.15-rc1~96^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6103fb43fbc6d1caa78f26a1d0aa3d1a4525cea5;p=pandora-kernel.git Btrfs: remove unnecessary ref heads rb tree search When we didn't find the exact ref head we were looking for, if return_bigger != 0 we set a new search key to match either the next node after the last one we found or the first one in the ref heads rb tree, and then did another full tree search. For both cases this ended up being pointless as we would end up returning an entry we already had before repeating the search. Signed-off-by: Filipe David Borba Manana Signed-off-by: Josef Bacik --- Reading git-diff-tree failed