diff options
author | Feifei Xu <xufeifei@linux.vnet.ibm.com> | 2016-06-01 13:18:25 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-06-02 19:23:14 +0200 |
commit | b9ef22dedde08ab1b4ccd5f53344984c4dcb89f4 (patch) | |
tree | 82c6a1483dfdd040c1e0cdb7a9bfec06d351cd3a /fs/btrfs/disk-io.h | |
parent | Btrfs: Fix integer overflow when calculating bytes_per_bitmap (diff) | |
download | linux-b9ef22dedde08ab1b4ccd5f53344984c4dcb89f4.tar.xz linux-b9ef22dedde08ab1b4ccd5f53344984c4dcb89f4.zip |
Btrfs: self-tests: Support non-4k page size
self-tests code assumes 4k as the sectorsize and nodesize. This commit
fix hardcoded 4K. Enables the self-tests code to be executed on non-4k
page sized systems (e.g. ppc64).
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>
Diffstat (limited to 'fs/btrfs/disk-io.h')
-rw-r--r-- | fs/btrfs/disk-io.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.h b/fs/btrfs/disk-io.h index 8e79d0070bcf..acba821499a9 100644 --- a/fs/btrfs/disk-io.h +++ b/fs/btrfs/disk-io.h @@ -90,7 +90,7 @@ void btrfs_drop_and_free_fs_root(struct btrfs_fs_info *fs_info, void btrfs_free_fs_root(struct btrfs_root *root); #ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS -struct btrfs_root *btrfs_alloc_dummy_root(void); +struct btrfs_root *btrfs_alloc_dummy_root(u32 sectorsize, u32 nodesize); #endif /* |