aboutsummaryrefslogtreecommitdiffstats
path: root/volumes.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2013-12-16 20:33:58 +0800
committerChris Mason <clm@fb.com>2014-01-31 08:22:19 -0800
commit91bc44bd073020c27487b22ccf53a37d593d331e (patch)
tree05316b95b9b17912e33995ce438199b0f3228bf2 /volumes.c
parent5e5fd1b9edb97e713352686e650c05d59fb1287b (diff)
downloadbtrfs-progs-91bc44bd073020c27487b22ccf53a37d593d331e.tar.gz
btrfs-progs-91bc44bd073020c27487b22ccf53a37d593d331e.tar.xz
btrfs-progs-91bc44bd073020c27487b22ccf53a37d593d331e.zip
btrfs-progs: use stripe_len define here
Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'volumes.c')
-rw-r--r--volumes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/volumes.c b/volumes.c
index e25b4c0..65be5f0 100644
--- a/volumes.c
+++ b/volumes.c
@@ -655,7 +655,7 @@ static u64 chunk_bytes_by_type(u64 type, u64 calc_size, int num_stripes,
static u32 find_raid56_stripe_len(u32 data_devices, u32 dev_stripe_target)
{
/* TODO, add a way to store the preferred stripe size */
- return 64 * 1024;
+ return BTRFS_STRIPE_LEN;
}
/*
@@ -773,7 +773,7 @@ int btrfs_alloc_chunk(struct btrfs_trans_handle *trans,
int looped = 0;
int ret;
int index;
- int stripe_len = 64 * 1024;
+ int stripe_len = BTRFS_STRIPE_LEN;
struct btrfs_key key;
u64 offset;
@@ -1010,7 +1010,7 @@ int btrfs_alloc_data_chunk(struct btrfs_trans_handle *trans,
int sub_stripes = 0;
int ret;
int index;
- int stripe_len = 64 * 1024;
+ int stripe_len = BTRFS_STRIPE_LEN;
struct btrfs_key key;
key.objectid = BTRFS_FIRST_CHUNK_TREE_OBJECTID;