From: Miao Xie Date: Thu, 18 Oct 2012 08:18:01 +0000 (+0000) Subject: Btrfs: fix unnecessary while loop when search the free space, cache X-Git-Tag: v3.8-rc1~71^2~110 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de6c4115a297d4bbf178aca9948c3539f89c9caa;p=pandora-kernel.git Btrfs: fix unnecessary while loop when search the free space, cache 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 entry which is in front of a bitmap entry can cover the offset of the entry after that bitmap entry. Signed-off-by: Miao Xie Reviewed-by: Liu Bo Signed-off-by: Chris Mason --- Reading git-diff-tree failed