summaryrefslogtreecommitdiff
path: root/volumes.c
diff options
context:
space:
mode:
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>2014-11-26 10:43:40 +0800
committerDavid Sterba <dsterba@suse.cz>2014-12-09 14:32:35 +0100
commitf0b1ff4481798c877bdf8869b8f69f36124466a8 (patch)
tree50ecb993063ec5416a5a788b6b70cdabd168a13a /volumes.c
parent103f68d7158fdab45cb3bd3c5b03e1ad75e332ae (diff)
btrfs-progs: remove dead condition for btrfs_map_block
The @search_cache_extent() only returns the next cache_extent or NULL, it will never return the previous cache_extent. So just remove the dead condition for previous cache_extent handle. Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'volumes.c')
-rw-r--r--volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/volumes.c b/volumes.c
index 5b007fc8..a1fd162a 100644
--- a/volumes.c
+++ b/volumes.c
@@ -1320,7 +1320,7 @@ again:
kfree(multi);
return -ENOENT;
}
- if (ce->start > logical || ce->start + ce->size < logical) {
+ if (ce->start > logical) {
kfree(multi);
return -ENOENT;
}