diff options
-rw-r--r-- | fs/btrfs/tests/free-space-tests.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/btrfs/tests/free-space-tests.c b/fs/btrfs/tests/free-space-tests.c index 029343b3e854..3956bb2ff84c 100644 --- a/fs/btrfs/tests/free-space-tests.c +++ b/fs/btrfs/tests/free-space-tests.c | |||
@@ -843,7 +843,13 @@ int btrfs_test_free_space_cache(u32 sectorsize, u32 nodesize) | |||
843 | 843 | ||
844 | test_msg("Running btrfs free space cache tests\n"); | 844 | test_msg("Running btrfs free space cache tests\n"); |
845 | 845 | ||
846 | cache = btrfs_alloc_dummy_block_group(1024 * 1024 * 1024, sectorsize); | 846 | /* |
847 | * For ppc64 (with 64k page size), bytes per bitmap might be | ||
848 | * larger than 1G. To make bitmap test available in ppc64, | ||
849 | * alloc dummy block group whose size cross bitmaps. | ||
850 | */ | ||
851 | cache = btrfs_alloc_dummy_block_group(BITS_PER_BITMAP * sectorsize | ||
852 | + PAGE_SIZE, sectorsize); | ||
847 | if (!cache) { | 853 | if (!cache) { |
848 | test_msg("Couldn't run the tests\n"); | 854 | test_msg("Couldn't run the tests\n"); |
849 | return 0; | 855 | return 0; |