diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2012-10-18 10:18:01 +0200 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2012-12-11 19:31:33 +0100 |
commit | de6c4115a297d4bbf178aca9948c3539f89c9caa (patch) | |
tree | 673e3a6f97931dbed42b0dc8fca2e2a44c3808cc /fs/hpfs | |
parent | Btrfs: recheck bio against block device when we map the bio (diff) | |
download | linux-de6c4115a297d4bbf178aca9948c3539f89c9caa.tar.xz linux-de6c4115a297d4bbf178aca9948c3539f89c9caa.zip |
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 <miaox@cn.fujitsu.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/hpfs')
0 files changed, 0 insertions, 0 deletions