Btrfs: fix double increment of path->slots[0] in btrfs_next_leaf
authorYan Zheng <zheng.yan@oracle.com>
Wed, 22 Jul 2009 13:59:00 +0000 (09:59 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 22 Jul 2009 13:59:00 +0000 (09:59 -0400)
commite457afec60fdbd86b963d36f4a8a9285088c6043
treee3d0add1584cd9edae3dfd24405a13294a2a2280
parentbf1fb512a58d7aeb41aaa40d6d2d2d29e08e506a
Btrfs: fix double increment of path->slots[0] in btrfs_next_leaf

if 1 is returned by btrfs_search_slot, the path already points to the
first item with 'key > searching key'. So increasing path->slots[0] by
one is superfluous in that case.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c