Signed-off-by: Qu Wenruo <quwen...@cn.fujitsu.com>
---
 convert/source-ext2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/convert/source-ext2.c b/convert/source-ext2.c
index 1b0576b1..d12681b5 100644
--- a/convert/source-ext2.c
+++ b/convert/source-ext2.c
@@ -289,7 +289,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;
 
-- 
2.13.0



--
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