Btrfs: remove some BUG_ONs() when walking backref tree
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>
Wed, 10 Apr 2013 11:22:50 +0000 (11:22 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:54:42 +0000 (15:54 -0400)
commit1149ab6bd48cf3b00c59e4f8ff79fbb1cf15b94b
tree883d8d57be3167e665e8188822002c54aa392389
parent92f183aa5b8a8655431583e4c53e80fa3e0070e5
Btrfs: remove some BUG_ONs() when walking backref tree

The only error return value of __add_prelim_ref() is -ENOMEM,
just return errors rather than trigger BUG_ON().

Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/backref.c