VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Christoph Hellwig <hch@lst.de> 2020-05-23 09:30:13 +0200 committer: Theodore Ts'o <tytso@mit.edu> 2020-06-03 23:16:55 -0400 commit: cddf8a2c4a8286ae60fc866eab59c8bc524e93a0 parent: 2732881894714f545ffac42dad7ba7730069874d
Commit Summary:
fs: move fiemap range validation into the file systems instances
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/iomap/fiemap.c b/fs/iomap/fiemap.c
index 449705575acf..89dca4a97e4a 100644
--- a/fs/iomap/fiemap.c
+++ b/fs/iomap/fiemap.c
@@ -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;