Re: [RFC PATCH] Btrfs: optimize csums insertion function

2013-06-17 Thread Miao Xie
Any comments? Thanks Miao On thu, 13 Jun 2013 20:22:17 +0800, Miao Xie wrote: > Before applying this patch, we search the csum item at first, and If the > new csums is adjoining to the existed csum item, we call btrfs_search_slot() > to grow this item. It is unnecessary because we can re-use the

[RFC PATCH] Btrfs: optimize csums insertion function

2013-06-13 Thread Miao Xie
Before applying this patch, we search the csum item at first, and If the new csums is adjoining to the existed csum item, we call btrfs_search_slot() to grow this item. It is unnecessary because we can re-use the first search result, if so, we can reduce the time of the csum insertion. And Without