btrfs: __add_reloc_root error push-up
authorJeff Mahoney <jeffm@suse.com>
Tue, 4 Oct 2011 03:23:15 +0000 (23:23 -0400)
committerDavid Sterba <dsterba@suse.cz>
Thu, 22 Mar 2012 00:45:34 +0000 (01:45 +0100)
commitffd7b33944f4573a063af7a55f8a5199c8185665
treebb7b3b2293bedc58b0d09f146ef68d0614432072
parent355808c296c6923db6705f43639969a80b16d15d
btrfs: __add_reloc_root error push-up

This patch pushes kmalloc errors up to the caller and BUGs in the caller.

The BUG_ON for duplicate reloc tree root insertion is replaced with a
panic explaining the issue.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
fs/btrfs/relocation.c