diff options
author | Josef Bacik <josef@toxicpanda.com> | 2021-03-12 23:25:30 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-04-19 18:25:22 +0300 |
commit | 57a304cfd43b2b4a5b44b8f5dc026abb34183068 (patch) | |
tree | 820b2d54131f4173c069c9158a8a6c3c98d994c9 /lib/mpi/mpi-sub-ui.c | |
parent | 3c9258632c49436558f10776be1809ae051cdb9e (diff) | |
download | linux-57a304cfd43b2b4a5b44b8f5dc026abb34183068.tar.xz |
btrfs: do not panic in __add_reloc_root
If we have a duplicate entry for a reloc root then we could have fs
corruption that resulted in a double allocation. Since this shouldn't
happen unless there is corruption, add an ASSERT(ret != -EEXIST) to all
of the callers of __add_reloc_root() to catch any logic mistakes for
developers, otherwise normal error handling will happen 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 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions