fs: move fiemap range validation into the file systems instances
[linux-2.6-microblaze.git] / fs / iomap / fiemap.c
index 4497055..89dca4a 100644 (file)
@@ -75,7 +75,7 @@ int iomap_fiemap(struct inode *inode, struct fiemap_extent_info *fi,
        ctx.fi = fi;
        ctx.prev.type = IOMAP_HOLE;
 
-       ret = fiemap_check_flags(fi, FIEMAP_FLAG_SYNC);
+       ret = fiemap_prep(inode, fi, start, &len, FIEMAP_FLAG_SYNC);
        if (ret)
                return ret;