btrfs: scrub: errors in tree enumeration
authorArne Jansen <sensille@gmx.net>
Fri, 3 Jun 2011 08:09:26 +0000 (10:09 +0200)
committerArne Jansen <sensille@gmx.net>
Fri, 10 Jun 2011 10:14:13 +0000 (12:14 +0200)
commit8c51032f978bac5bec5dae0c5de4f85db97c1cc9
treecb67a12fd149fa57a5024482f272b4ae22c48164
parentad3e34bba4b64ab8e1f5ea1a17768e1a0d9648ea
btrfs: scrub: errors in tree enumeration

due to the semantics of btrfs_search_slot the path can point to an
invalid slot when ret > 0. This condition went unnoticed, which in
turn could have led to an incomplete scrubbing.

Signed-off-by: Arne Jansen <sensille@gmx.net>
fs/btrfs/scrub.c