btrfs: find_and_setup_root error push-up
authorJeff Mahoney <jeffm@suse.com>
Tue, 4 Oct 2011 03:22:43 +0000 (23:22 -0400)
committerDavid Sterba <dsterba@suse.cz>
Thu, 22 Mar 2012 00:45:32 +0000 (01:45 +0100)
commit200a5c17677e1ee8b78382046f3748c9f5816281
treeaca0964b50af798d919ca3b710cfcd9c69498170
parent6763af84a69f23c1c79f00720982e74fcff4d1f3
btrfs: find_and_setup_root error push-up

find_and_setup_root BUGs when it encounters an error from
btrfs_find_last_root, which can occur if a path can't be allocated.

This patch pushes it up to its callers where it is already handled.

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