Btrfs: self-tests: Fix test_bitmaps fail on 64k sectorsize
authorFeifei Xu <[email protected]>
Wed, 1 Jun 2016 11:18:29 +0000 (19:18 +0800)
committerDavid Sterba <[email protected]>
Mon, 6 Jun 2016 15:17:12 +0000 (17:17 +0200)
commit36b3dc05b4650e81eca7d60d548a92b014595eb1
tree2525d9356cf030201e1541e81caccd07f9be2d44
parentef9f2db365c31433e52b0c5863793273bb632666
Btrfs: self-tests: Fix test_bitmaps fail on 64k sectorsize

With 64K sectorsize, 1G sized block group cannot span across bitmaps.
To execute test_bitmaps() function, this commit allocates
"BITS_PER_BITMAP * sectorsize + PAGE_SIZE" sized block group.

Reviewed-by: Josef Bacik <[email protected]>
Reviewed-by: Chandan Rajendra <[email protected]>
Signed-off-by: Feifei Xu <[email protected]>
Signed-off-by: David Sterba <[email protected]>
fs/btrfs/tests/free-space-tests.c