aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tests
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-18 14:19:33 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:28 +0200
commit3173fd926c465aca52740497a5f5fac538a271fe (patch)
tree73bdd7ade21dbca1b4019a3b7e31c8ba8dad2c9f /fs/btrfs/tests
parentbtrfs: tests: use SZ_ constants everywhere (diff)
downloadlinux-dev-3173fd926c465aca52740497a5f5fac538a271fe.tar.xz
linux-dev-3173fd926c465aca52740497a5f5fac538a271fe.zip
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: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tests')
-rw-r--r--fs/btrfs/tests/extent-map-tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/tests/extent-map-tests.c b/fs/btrfs/tests/extent-map-tests.c
index a09783f19011..87aeabe9d610 100644
--- a/fs/btrfs/tests/extent-map-tests.c
+++ b/fs/btrfs/tests/extent-map-tests.c
@@ -155,7 +155,7 @@ static int test_case_2(struct btrfs_fs_info *fs_info,
}
free_extent_map(em);
- /* Add [4K, 4K) following [0, 1K) */
+ /* Add [4K, 8K) following [0, 1K) */
em = alloc_extent_map();
if (!em) {
test_std_err(TEST_ALLOC_EXTENT_MAP);
@@ -334,7 +334,7 @@ static int __test_case_4(struct btrfs_fs_info *fs_info,
goto out;
}
- /* Add [8K, 24K) */
+ /* Add [8K, 32K) */
em->start = SZ_8K;
em->len = 24 * SZ_1K;
em->block_start = SZ_16K; /* avoid merging */