Re: [PATCH] Btrfs: fill_holes: Fix slot number passed to hole_mergeable() call.

2014-07-01 Thread Wang Shilong
On 07/01/2014 02:34 PM, Chandan Rajendra wrote: For a non-existent key, btrfs_search_slot() sets path->slots[0] to the slot where the key could have been present, which in this case would be the slot containing the extent item which would be the next neighbor of the file range being punched. The

[PATCH] Btrfs: fill_holes: Fix slot number passed to hole_mergeable() call.

2014-06-30 Thread Chandan Rajendra
For a non-existent key, btrfs_search_slot() sets path->slots[0] to the slot where the key could have been present, which in this case would be the slot containing the extent item which would be the next neighbor of the file range being punched. The current code passes an incremented path->slots[0]