diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-08-30 15:09:51 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-09-21 10:58:54 -0400 |
commit | 83d4cfd4da57b6ff16296875a962de2158799de6 (patch) | |
tree | 4137d0e5d3a72243303a3cee5107f3db57963b7f /security | |
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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions