projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7abadb6
)
btrfs: Cleanup some redundant codes in btrfs_lookup_csums_range()
author
Zhi Yong Wu
<wuzhy@linux.vnet.ibm.com>
Mon, 18 Mar 2013 09:18:09 +0000
(09:18 +0000)
committer
Josef Bacik
<jbacik@fusionio.com>
Mon, 6 May 2013 19:54:20 +0000
(15:54 -0400)
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/file-item.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/file-item.c
b/fs/btrfs/file-item.c
index
bc3c924
..
ad3cd86
100644
(file)
--- a/
fs/btrfs/file-item.c
+++ b/
fs/btrfs/file-item.c
@@
-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]);
if (key.objectid != BTRFS_EXTENT_CSUM_OBJECTID ||
- key.type != BTRFS_EXTENT_CSUM_KEY)
- break;
-
- btrfs_item_key_to_cpu(leaf, &key, path->slots[0]);
- if (key.offset > end)
+ key.type != BTRFS_EXTENT_CSUM_KEY ||
+ key.offset > end)
break;
if (key.offset > start)