diff options
author | Josef Bacik <josef@toxicpanda.com> | 2022-02-18 10:03:28 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-03-14 13:13:52 +0100 |
commit | 510671d2d83668b76c08baec5faa2319ceaffd62 (patch) | |
tree | 77ec6a082d90167911d41150b62f85450cddec2f /fs/btrfs/reflink.c | |
parent | f9f15de85d74e7eef021af059ca53a15f041cdd8 (diff) | |
download | linux-510671d2d83668b76c08baec5faa2319ceaffd62.tar.gz linux-510671d2d83668b76c08baec5faa2319ceaffd62.tar.bz2 linux-510671d2d83668b76c08baec5faa2319ceaffd62.zip |
btrfs: do not try to repair bio that has no mirror set
If we fail to submit a bio for whatever reason, we may not have setup a
mirror_num for that bio. This means we shouldn't try to do the repair
workflow, if we do we'll hit an BUG_ON(!failrec->this_mirror) in
clean_io_failure. Instead simply skip the repair workflow if we have no
mirror set, and add an assert to btrfs_check_repairable() to make it
easier to catch what is happening in the future.
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/reflink.c')
0 files changed, 0 insertions, 0 deletions