]> Git Repo - linux.git/commit
btrfs: Don't panic when we can't find a root key
authorQu Wenruo <[email protected]>
Tue, 26 Feb 2019 08:33:56 +0000 (16:33 +0800)
committerDavid Sterba <[email protected]>
Mon, 29 Apr 2019 17:02:17 +0000 (19:02 +0200)
commit7ac1e464c4d473b517bb784f30d40da1f842482e
tree19de63c7656fd2df9720881d78cc41ffa8591836
parentc53839fc3217085c210e1a62022016f199ae7b5a
btrfs: Don't panic when we can't find a root key

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 <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
fs/btrfs/root-tree.c
This page took 0.045692 seconds and 4 git commands to generate.