diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-04-19 18:37:26 (GMT) |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-05-06 19:55:01 (GMT) |
commit | 0a3896d0f563d4472c75ab2c26afd8940d24b5a1 (patch) | |
tree | 35106cf7f93687515e9bc90fdfeaf2a71b8b3277 /fs/btrfs/hash.h | |
parent | 62dbd7176e196cd042c5542696981b268264fe92 (diff) | |
download | linux-fsl-qoriq-0a3896d0f563d4472c75ab2c26afd8940d24b5a1.tar.xz |
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>
Diffstat (limited to 'fs/btrfs/hash.h')
0 files changed, 0 insertions, 0 deletions