Btrfs: self-tests: Fix test_bitmaps fail on 64k sectorsize
authorFeifei Xu <xufeifei@linux.vnet.ibm.com>
Wed, 1 Jun 2016 11:18:29 +0000 (19:18 +0800)
committerDavid Sterba <dsterba@suse.com>
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 <jbacik@fb.com>
Reviewed-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: Feifei Xu <xufeifei@linux.vnet.ibm.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/free-space-tests.c