Qu Wenruo 72c8b10030 btrfs: Don't panic when we can't find a root key
[ Upstream commit 7ac1e464c4d473b517bb784f30d40da1f842482e ]

When we failed to find a root key in btrfs_update_root(), we just panic.

That's definitely not cool, fix it by outputting an unique error
message, aborting current transaction and return -EUCLEAN. This should
not normally happen as the root has been used by the callers in some
way.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-05-31 06:47:20 -07:00
..
2018-07-08 15:30:51 +02:00
2019-05-31 06:47:10 -07:00
2018-12-17 09:28:54 +01:00
2019-05-31 06:47:14 -07:00
2018-12-21 14:13:04 +01:00
2017-09-04 19:05:15 -04:00
2017-04-17 12:52:27 -04:00
2019-03-13 14:03:11 -07:00