aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2023-11-21 13:38:35 +0000
committerDavid Sterba <[email protected]>2023-12-15 19:27:01 +0000
commit3128b548c759da4263b44306093d3a1751dcc58d (patch)
tree7ab87a22237ec8d5b807b77e9947f8ed5d0d94f9 /fs/btrfs/dev-replace.c
parentbtrfs: mark sanity checks when getting chunk map as unlikely (diff)
downloadkernel-3128b548c759da4263b44306093d3a1751dcc58d.tar.gz
kernel-3128b548c759da4263b44306093d3a1751dcc58d.zip
btrfs: split assert into two different asserts when removing block group
When starting a transaction to remove a block group we have one ASSERT that checks we found an extent map and that the extent map's start offset matches the desired chunk offset. In case one of the conditions fails, we get a stack trace that point to the respective line of code, however we can't tell which condition failed: either there's no extent map or we got one with an unexpected start offset. To make such an issue easier to debug and analyse, split the assertion into two, one for each condition. This was actually triggered during development of another upcoming change. Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions