btrfs: Cleanup some redundant codes in btrfs_lookup_csums_range()
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
This commit is contained in:
parent
7abadb6431
commit
628c8282be
|
@ -358,11 +358,8 @@ int btrfs_lookup_csums_range(struct btrfs_root *root, u64 start, u64 end,
|
||||||
|
|
||||||
btrfs_item_key_to_cpu(leaf, &key, path->slots[0]);
|
btrfs_item_key_to_cpu(leaf, &key, path->slots[0]);
|
||||||
if (key.objectid != BTRFS_EXTENT_CSUM_OBJECTID ||
|
if (key.objectid != BTRFS_EXTENT_CSUM_OBJECTID ||
|
||||||
key.type != BTRFS_EXTENT_CSUM_KEY)
|
key.type != BTRFS_EXTENT_CSUM_KEY ||
|
||||||
break;
|
key.offset > end)
|
||||||
|
|
||||||
btrfs_item_key_to_cpu(leaf, &key, path->slots[0]);
|
|
||||||
if (key.offset > end)
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (key.offset > start)
|
if (key.offset > start)
|
||||||
|
|
Loading…
Reference in a new issue