| Submitter | Zheng Liu |
|---|---|
| Date | Nov. 20, 2012, 9:29 a.m. |
| Message ID | <1353403785-3489-2-git-send-email-wenqing.lz@taobao.com> |
| Download | mbox | patch |
| Permalink | /patch/200269/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 7011ac9..c2eb409 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -4427,10 +4427,6 @@ long ext4_fallocate(struct file *file, int mode, loff_t offset, loff_t len) if (!(ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS))) return -EOPNOTSUPP; - /* Return error if mode is not supported */ - if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) - return -EOPNOTSUPP; - if (mode & FALLOC_FL_PUNCH_HOLE) return ext4_punch_hole(file, offset, len);