]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: remove obsolete btrfs_next_leaf call from __resolve_indirect_ref
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Thu, 14 Jun 2012 14:10:13 +0000 (16:10 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Thu, 14 Jun 2012 16:44:20 +0000 (18:44 +0200)
commit468d65d6785a0bf3c5964f7504a49b13f374950b
treee03dda81d6e049f9f1382f47bcc750b6764dc27b
parent821d9d027886edfd53a1513825f74a43eda638d6
Btrfs: remove obsolete btrfs_next_leaf call from __resolve_indirect_ref

When resolving indirect refs, we used to call btrfs_next_leaf in case we
didn't find an exact match. While we should find exact matches most of the
time, in case we don't, we must continue searching. Treating those matches
differently depending on the level we're searching doesn't make sense.

Even worse, we might end up searching for a key larger than the largest, in
which case there is no next_leaf and subsequent jobs would fail. This commit
drops the bogous lines.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
fs/btrfs/backref.c