btrfs: send: do not BUG_ON() on unexpected symlink data extent
authorFilipe Manana <fdmanana@suse.com>
Mon, 12 Jun 2023 10:40:59 +0000 (11:40 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:39 +0000 (13:59 +0200)
commit6f3eb72a1f26ee84ed9de99ffa9edb1a3748c33b
tree0b444bbec2eb2c63abb220f5f25f71fb446801dc
parentfc4026e26b3383b896af5c0923ada8ae7064ca07
btrfs: send: do not BUG_ON() on unexpected symlink data extent

There's really no need to BUG_ON() if we find a symlink with an extent
that is not inline or is compressed. We can just make send fail with
an error (-EUCLEAN) and log an informative error message, so just do
that instead of BUG_ON().

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/send.c