os/kstore: no magic len=0 to fiemap

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-01-18 12:40:19 -05:00
parent d794be4a53
commit 3c4eddb5d9

View File

@ -1602,9 +1602,6 @@ int KStore::fiemap(
return -ENOENT;
}
if (offset == len && offset == 0)
len = o->onode.size;
if (offset > o->onode.size)
goto out;