diff options
author | Josef Bacik <josef@toxicpanda.com> | 2021-03-12 15:25:32 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-04-19 17:25:22 +0200 |
commit | 8717cf440db670ba87596d8f5f6660d2a94f4401 (patch) | |
tree | e64a920d111adc17af8f9311e99af1cb2022aced /init/version.c | |
parent | e0b085b0b03fa5c435b7240668f144199ed989c4 (diff) |
btrfs: handle extent corruption with select_one_root properly
In corruption cases we could have paths from a block up to no root at
all, and thus we'll BUG_ON(!root) in select_one_root. Handle this by
adding an ASSERT() for developers, and returning an error for normal
users.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'init/version.c')
0 files changed, 0 insertions, 0 deletions