History

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.

Christoph Hellwig committed 6 years ago

Commit da565e71 parent 03a5ed21 file · +0 −3Browse files

Unified · Split

fs/ext4/extents.c+0−3
@@ -4896,9 +4896,6 @@ int ext4_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, · 4895 unmodified lines
4896 fieinfo->fi_flags &= ~FIEMAP_FLAG_CACHE;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 * For bitmap files the maximum size limit could be smaller than4900 * For bitmap files the maximum size limit could be smaller than
4904 * s_maxbytes, so check len here manually instead of just relying on the4901 * s_maxbytes, so check len here manually instead of just relying on the

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t