summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tests
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2017-10-16 16:48:40 +0300
committerDavid Sterba <dsterba@suse.com>2017-10-30 12:28:01 +0100
commitd4417e22551377c6e589c15ff2b931610e5230bc (patch)
treee9cc58012de6a8b32f260dc2c316da53306ca9ce /fs/btrfs/tests
parent859a58a2074858dc03943c1fa1a2975576f9b0b8 (diff)
downloadop-kernel-dev-d4417e22551377c6e589c15ff2b931610e5230bc.zip
op-kernel-dev-d4417e22551377c6e589c15ff2b931610e5230bc.tar.gz
btrfs: Replace opencoded sizes with their symbolic constants
Currently btrfs' code uses a mix of opencoded sizes and defines from sizes.h. Let's unifiy the code base to always use the symbolic constants. No functional changes Signed-off-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tests')
-rw-r--r--fs/btrfs/tests/inode-tests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/tests/inode-tests.c b/fs/btrfs/tests/inode-tests.c
index 8c91d03..330815e 100644
--- a/fs/btrfs/tests/inode-tests.c
+++ b/fs/btrfs/tests/inode-tests.c
@@ -770,7 +770,7 @@ static noinline int test_btrfs_get_extent(u32 sectorsize, u32 nodesize)
offset = em->start + em->len;
free_extent_map(em);
- em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, 4096 * 1024, 0);
+ em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, SZ_4M, 0);
if (IS_ERR(em)) {
test_msg("Got an error when we shouldn't have\n");
goto out;
OpenPOWER on IntegriCloud