summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorrobbieko <robbieko@synology.com>2026-04-13 14:52:35 +0800
committerDavid Sterba <dsterba@suse.com>2026-04-21 04:02:30 +0200
commit653361585d251fbca0e19ac58b04ba95dd01e378 (patch)
treedeb8854064ece3b665a06998641577584d56cd9c /include
parent1871ae78ffa5ce7c0458e9ba5867958c1753e425 (diff)
btrfs: replace ASSERT with proper error handling in stripe lookup fallback
After falling back to the previous item in btrfs_delete_raid_extent(), the code uses ASSERT(found_start <= start) to verify the found extent actually precedes our target range. If the B-tree state is unexpected (e.g. no overlapping extent exists), this triggers a kernel BUG/panic in debug builds, or silently continues with wrong data otherwise. Replace the ASSERT with a proper bounds check that returns -ENOENT if the found extent does not actually overlap with the start position. Signed-off-by: robbieko <robbieko@synology.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions