linux/fs/btrfs/tests
David Sterba b3470b5dbe btrfs: add dedicated members for start and length of a block group
The on-disk format of block group item makes use of the key that stores
the offset and length. This is further used in the code, although this
makes thing harder to understand. The key is also packed so the
offset/length is not properly aligned as u64.

Add start (key.objectid) and length (key.offset) members to block group
and remove the embedded key.  When the item is searched or written, a
local variable for key is used.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2019-11-18 17:51:45 +01:00
..
btrfs-tests.c btrfs: add dedicated members for start and length of a block group 2019-11-18 17:51:45 +01:00
btrfs-tests.h btrfs: tests: add table of most common errors 2019-04-29 19:02:25 +02:00
extent-buffer-tests.c btrfs: tests: use standard error message after path allocation failure 2019-04-29 19:02:26 +02:00
extent-io-tests.c Btrfs: make test_find_first_clear_extent_bit fail on incorrect results 2019-09-09 14:59:05 +02:00
extent-map-tests.c btrfs: tests: add locks around add_extent_mapping 2019-07-01 13:35:03 +02:00
free-space-tests.c btrfs: move basic block_group definitions to their own header 2019-09-09 14:59:03 +02:00
free-space-tree-tests.c btrfs: add dedicated members for start and length of a block group 2019-11-18 17:51:45 +01:00
inode-tests.c btrfs: stop clearing EXTENT_DIRTY in inode I/O tree 2019-09-09 14:59:17 +02:00
qgroup-tests.c btrfs: tests: unify messages when tests start 2019-04-29 19:02:28 +02:00