summaryrefslogtreecommitdiff
path: root/fs/btrfs/tests
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2023-12-04 16:20:23 +0000
committerDavid Sterba <dsterba@suse.com>2023-12-15 22:59:01 +0100
commit32d53f6f7b01f572dac6f0c2f4dbfc03ebe38112 (patch)
treeda614a33ecd60943d37dd2422b33eb163c474e6c /fs/btrfs/tests
parent637e6e0f50d20dcf2f37d62b3f9edf9567b69503 (diff)
btrfs: assert extent map is not in a list when setting it up
When setting up a new extent map, at setup_extent_mapping(), we're doing a list move operation to add the extent map the tree's list of modified extents. This is confusing because at this point the extent map can not be in any list, because it's a new extent map. So replace the list move with a list add and add an assertion that checks that the extent map is not currently in any list. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tests')
0 files changed, 0 insertions, 0 deletions