Re: [PATCH] btrfs: fix warning while merging two adjacent extents

2014-01-22 Thread Liu Bo
On Thu, Jan 23, 2014 at 01:41:09PM +0800, Gui Hecheng wrote: > When we have two adjacent extents in relink_extent_backref, > we try to merge them. When we use btrfs_search_slot to locate the > slot for the current extent, we shouldn't set "ins_len = 1", > because we will merge it into the previous

[PATCH] btrfs: fix warning while merging two adjacent extents

2014-01-22 Thread Gui Hecheng
When we have two adjacent extents in relink_extent_backref, we try to merge them. When we use btrfs_search_slot to locate the slot for the current extent, we shouldn't set "ins_len = 1", because we will merge it into the previous extent rather than insert a new item. Otherwise, we may happen to cre