diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2015-07-23 17:18:10 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-08-31 19:25:10 +0200 |
commit | c11eeecd784b906ee64613cb2dd8186bc6b5dc34 (patch) | |
tree | 373abdc3e606052bf3ae17fe877770f7307bf0f3 /extent-tree.c | |
parent | 854437ca3c228d8ab3eb24d2efc1c21b5d56a635 (diff) |
btrfs-progs: convert: Avoid allocating metadata extent crossing stripe boundary
As convert implement its own alloc extent, avoid such metadata problem
too.
Reported-by: Chris Murphy <lists@colorremedies.com>
Reported-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'extent-tree.c')
-rw-r--r-- | extent-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extent-tree.c b/extent-tree.c index 6f07e4b4..0c8152a3 100644 --- a/extent-tree.c +++ b/extent-tree.c @@ -2654,7 +2654,7 @@ int btrfs_reserve_extent(struct btrfs_trans_handle *trans, if (info->extent_ops) { struct btrfs_extent_ops *ops = info->extent_ops; - ret = ops->alloc_extent(root, num_bytes, hint_byte, ins); + ret = ops->alloc_extent(root, num_bytes, hint_byte, ins, !data); BUG_ON(ret); goto found; } |