]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: remove unnecessary ref heads rb tree search
authorFilipe Manana <fdmanana@gmail.com>
Wed, 12 Feb 2014 15:07:52 +0000 (15:07 +0000)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:16:46 +0000 (15:16 -0400)
commitd8233d50c6c577f76552f5fe37489cf515b9f242
treeff21403bb6f11fe1ae08f948c36f30d69032e485
parentcc9939508a0693d656c52bce4b956fd8c1a96b94
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 <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/delayed-ref.c