[PATCH V2] Btrfs: fix unnecessary while loop when search the free space, cache

2012-10-18 Thread Miao Xie
When we find a bitmap free space entry, we may check the previous extent entry covers the offset or not. But if we find this entry is also a bitmap entry, we will continue to check the previous entry of the current one by a while loop. It is unnecessary because it is impossible that the extent

Re: [PATCH V2] Btrfs: fix unnecessary while loop when search the free space, cache

2012-10-18 Thread Liu Bo
On 10/18/2012 04:18 PM, Miao Xie wrote: When we find a bitmap free space entry, we may check the previous extent entry covers the offset or not. But if we find this entry is also a bitmap entry, we will continue to check the previous entry of the current one by a while loop. It is unnecessary