diff options
author | Mark Fasheh <mfasheh@suse.com> | 2011-08-08 13:20:18 -0700 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2012-03-22 01:45:36 +0100 |
commit | be1a5564fd39fa2ca6adbb41c75fb08f96a1ffcb (patch) | |
tree | de88d181ecbdcb130343116d7a6f71bbbc4a7e1a /fs/btrfs/file-item.c | |
parent | ce598979be6f83549c90f42ba522a19a33727611 (diff) |
btrfs: Don't BUG_ON() errors in update_ref_for_cow()
The only caller of update_ref_for_cow() is __btrfs_cow_block() which was
originally ignoring any return values. update_ref_for_cow() however doesn't
look like a candidate to become a void function - there are a few places
where errors can occur.
So instead I changed update_ref_for_cow() to bubble all errors up (instead
of BUG_ON). __btrfs_cow_block() was then updated to catch and BUG_ON() any
errors from update_ref_for_cow(). The end effect is that we have no change
in behavior, but about 8 different places where a BUG_ON(ret) was removed.
Obviously a future patch will have to address the BUG_ON() in
__btrfs_cow_block().
Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Diffstat (limited to 'fs/btrfs/file-item.c')
0 files changed, 0 insertions, 0 deletions