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>
kfree(multi);
return -ENOENT;
}
- if (ce->start > logical || ce->start + ce->size < logical) {
+ if (ce->start > logical) {
kfree(multi);
return -ENOENT;
}