btrfs-progs: Refactor sectorsize users in convert/source-ext2.c
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Thu, 18 May 2017 02:14:19 +0000 (10:14 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jul 2017 11:35:11 +0000 (13:35 +0200)
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
convert/source-ext2.c

index 38c3cd3..c6f9f28 100644 (file)
@@ -290,7 +290,7 @@ static int ext2_create_file_extents(struct btrfs_trans_handle *trans,
        char *buffer = NULL;
        errcode_t err;
        u32 last_block;
-       u32 sectorsize = root->sectorsize;
+       u32 sectorsize = root->fs_info->sectorsize;
        u64 inode_size = btrfs_stack_inode_size(btrfs_inode);
        struct blk_iterate_data data;