diff options
author | Qu Wenruo <wqu@suse.com> | 2024-06-25 13:34:33 +0930 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-07-11 15:33:29 +0200 |
commit | 1b87d26addd811ac7033720d21def3c4a3ef9fe3 (patch) | |
tree | 1fd74e9b0ba3166e5168786c9d3effc1aea13085 /block/blk-mq-debugfs.h | |
parent | 88e2e6d72423912f62b3e44aeeb967d798a2c2f5 (diff) |
btrfs: make validate_extent_map() catch ram_bytes mismatch
Previously validate_extent_map() is only to catch bugs related to
extent_map member cleanups.
But with recent btrfs-check enhancement to catch ram_bytes mismatch with
disk_num_bytes, it would be much better to catch such extent maps
earlier.
So this patch adds extra ram_bytes validation for extent maps.
Please note that, older filesystems with such mismatch won't trigger this error:
- extent_map::ram_bytes is already fixed
Previous patch has already fixed the ram_bytes for affected file
extents.
So this enhanced sanity check should not affect end users.
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'block/blk-mq-debugfs.h')
0 files changed, 0 insertions, 0 deletions