commit | 0a3896d0f563d4472c75ab2c26afd8940d24b5a1 | [log] [tgz] |
---|---|---|
author | Josef Bacik <jbacik@fusionio.com> | Fri Apr 19 14:37:26 2013 -0400 |
committer | Josef Bacik <jbacik@fusionio.com> | Mon May 06 15:55:01 2013 -0400 |
tree | 35106cf7f93687515e9bc90fdfeaf2a71b8b3277 | |
parent | 62dbd7176e196cd042c5542696981b268264fe92 [diff] |
Btrfs: fix possible infinite loop in slow caching So I noticed there is an infinite loop in the slow caching code. If we return 1 when we hit the end of the tree, so we could end up caching the last block group the slow way and suddenly we're looping forever because we just keep re-searching and trying again. Fix this by only doing btrfs_next_leaf() if we don't need_resched(). Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com>