iomap_fiemap already calls fiemap_check_flags first thing, so this additional check is redundant.
Unified · Split
| @@ -4896,9 +4896,6 @@ int ext4_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, · 4895 unmodified lines | ||
| 4896 | 4896 | fieinfo->fi_flags &= ~FIEMAP_FLAG_CACHE; |
| 4897 | 4897 | } |
| 4898 | 4898 | |
| 4899 | − if (fiemap_check_flags(fieinfo, FIEMAP_FLAG_SYNC | FIEMAP_FLAG_XATTR)) | |
| 4900 | − return -EBADR; | |
| 4901 | − | |
| 4902 | 4899 | /* |
| 4903 | 4900 | * For bitmap files the maximum size limit could be smaller than |
| 4904 | 4901 | * s_maxbytes, so check len here manually instead of just relying on the |