Commit 628c8282 authored by Zhi Yong Wu's avatar Zhi Yong Wu Committed by Josef Bacik

btrfs: Cleanup some redundant codes in btrfs_lookup_csums_range()

Signed-off-by: default avatarZhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
parent 7abadb64
...@@ -358,11 +358,8 @@ int btrfs_lookup_csums_range(struct btrfs_root *root, u64 start, u64 end, ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment