OSDN Git Service

Btrfs: self-tests: Execute page straddling test only when nodesize < PAGE_SIZE
authorFeifei Xu <xufeifei@linux.vnet.ibm.com>
Wed, 1 Jun 2016 11:18:26 +0000 (19:18 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Jun 2016 15:17:11 +0000 (17:17 +0200)
commited9e4afdb0551e3ef4ee8433fe664433a20ef73a
tree4cc9b8d92271dce66656fb19122c8ae861270592
parentb9ef22dedde08ab1b4ccd5f53344984c4dcb89f4
Btrfs: self-tests: Execute page straddling test only when nodesize < PAGE_SIZE

On ppc64, PAGE_SIZE is 64k which is same as BTRFS_MAX_METADATA_BLOCKSIZE.
In such a scenario, we will never be able to have an extent buffer
containing more than one page. Hence in such cases this commit does not
execute the page straddling tests.

Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Feifei Xu <xufeifei@linux.vnet.ibm.com>
Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/extent-io-tests.c