Skip to content

Commit da565e7

Browse files
Christoph Hellwigtytso
authored andcommitted
ext4: remove the call to fiemap_check_flags in ext4_fiemap
iomap_fiemap already calls fiemap_check_flags first thing, so this additional check is redundant. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Ritesh Harjani <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 03a5ed2 commit da565e7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/ext4/extents.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4896,9 +4896,6 @@ int ext4_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
48964896
fieinfo->fi_flags &= ~FIEMAP_FLAG_CACHE;
48974897
}
48984898

4899-
if (fiemap_check_flags(fieinfo, FIEMAP_FLAG_SYNC | FIEMAP_FLAG_XATTR))
4900-
return -EBADR;
4901-
49024899
/*
49034900
* For bitmap files the maximum size limit could be smaller than
49044901
* s_maxbytes, so check len here manually instead of just relying on the

0 commit comments

Comments
 (0)