Commit 3173fd92 authored by David Sterba's avatar David Sterba

btrfs: tests: fix comments about tested extent map ranges

Comments about ranges did not match the code, the correct calculation is
to use start and start+len as the interval boundaries.
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 43f7cddc
...@@ -155,7 +155,7 @@ static int test_case_2(struct btrfs_fs_info *fs_info, ...@@ -155,7 +155,7 @@ static int test_case_2(struct btrfs_fs_info *fs_info,
} }
free_extent_map(em); free_extent_map(em);
/* Add [4K, 4K) following [0, 1K) */ /* Add [4K, 8K) following [0, 1K) */
em = alloc_extent_map(); em = alloc_extent_map();
if (!em) { if (!em) {
test_std_err(TEST_ALLOC_EXTENT_MAP); test_std_err(TEST_ALLOC_EXTENT_MAP);
...@@ -334,7 +334,7 @@ static int __test_case_4(struct btrfs_fs_info *fs_info, ...@@ -334,7 +334,7 @@ static int __test_case_4(struct btrfs_fs_info *fs_info,
goto out; goto out;
} }
/* Add [8K, 24K) */ /* Add [8K, 32K) */
em->start = SZ_8K; em->start = SZ_8K;
em->len = 24 * SZ_1K; em->len = 24 * SZ_1K;
em->block_start = SZ_16K; /* avoid merging */ em->block_start = SZ_16K; /* avoid merging */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment