commit | 83d4cfd4da57b6ff16296875a962de2158799de6 | [log] [tgz] |
---|---|---|
author | Josef Bacik <jbacik@fusionio.com> | Fri Aug 30 15:09:51 2013 -0400 |
committer | Chris Mason <chris.mason@fusionio.com> | Sat Sep 21 10:58:54 2013 -0400 |
tree | 4137d0e5d3a72243303a3cee5107f3db57963b7f | |
parent | 07f0e62e7f2533918f28e780ab3cfeea1a63145d [diff] |
Btrfs: fixup error handling in btrfs_reloc_cow If we failed to actually allocate the correct size of the extent to relocate we will end up in an infinite loop because we won't return an error, we'll just move on to the next extent. So fix this up by returning an error, and then fix all the callers to return an error up the stack rather than BUG_ON()'ing. Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>