diff options
author | David Sterba <dsterba@suse.com> | 2024-01-19 20:44:57 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-03-04 16:24:47 +0100 |
commit | c093bf306562c34d1c71f89897bb9220f44f5e4c (patch) | |
tree | 802606468f0a11defe5aa02b7c5e9a2df12b00e1 /fs/btrfs/block-group.c | |
parent | 1686570265559ebfa828c1b784a31407ec2877bd (diff) |
btrfs: handle invalid range and start in merge_extent_mapping()
Turn a BUG_ON to a properly handled error and update the error message
in the caller. It is expected that @em_in and @start passed to
btrfs_add_extent_mapping() overlap. Besides tests, the only caller
btrfs_get_extent() makes sure this is true.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/block-group.c')
0 files changed, 0 insertions, 0 deletions