Signed-off-by: Anand Jain <anand.j...@oracle.com>
---
 v3: volume.c needs BTRFS_STRIPE_LEN as well
 v2: commit update

 btrfs-convert.c |    2 +-
 btrfs-image.c   |    2 +-
 volumes.c       |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/btrfs-convert.c b/btrfs-convert.c
index 65fe707..df20c15 100644
--- a/btrfs-convert.c
+++ b/btrfs-convert.c
@@ -1715,7 +1715,7 @@ static int prepare_system_chunk_sb(struct 
btrfs_super_block *super)
 
        btrfs_set_stack_chunk_length(chunk, btrfs_super_total_bytes(super));
        btrfs_set_stack_chunk_owner(chunk, BTRFS_EXTENT_TREE_OBJECTID);
-       btrfs_set_stack_chunk_stripe_len(chunk, 64 * 1024);
+       btrfs_set_stack_chunk_stripe_len(chunk, BTRFS_STRIPE_LEN);
        btrfs_set_stack_chunk_type(chunk, BTRFS_BLOCK_GROUP_SYSTEM);
        btrfs_set_stack_chunk_io_align(chunk, sectorsize);
        btrfs_set_stack_chunk_io_width(chunk, sectorsize);
diff --git a/btrfs-image.c b/btrfs-image.c
index 7bcfc06..1b2831a 100644
--- a/btrfs-image.c
+++ b/btrfs-image.c
@@ -1350,7 +1350,7 @@ static void update_super_old(u8 *buffer)
 
        btrfs_set_stack_chunk_length(chunk, (u64)-1);
        btrfs_set_stack_chunk_owner(chunk, BTRFS_EXTENT_TREE_OBJECTID);
-       btrfs_set_stack_chunk_stripe_len(chunk, 64 * 1024);
+       btrfs_set_stack_chunk_stripe_len(chunk, BTRFS_STRIPE_LEN);
        btrfs_set_stack_chunk_type(chunk, BTRFS_BLOCK_GROUP_SYSTEM);
        btrfs_set_stack_chunk_io_align(chunk, sectorsize);
        btrfs_set_stack_chunk_io_width(chunk, sectorsize);
diff --git a/volumes.c b/volumes.c
index c38da6c..7a9c955 100644
--- a/volumes.c
+++ b/volumes.c
@@ -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;
 
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to