aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 27ee10d66fcd..39bb52c9693e 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3340,16 +3340,16 @@ int ext4_punch_hole(struct file *file, loff_t offset, loff_t length)
3340{ 3340{
3341 struct inode *inode = file->f_path.dentry->d_inode; 3341 struct inode *inode = file->f_path.dentry->d_inode;
3342 if (!S_ISREG(inode->i_mode)) 3342 if (!S_ISREG(inode->i_mode))
3343 return -ENOTSUPP; 3343 return -EOPNOTSUPP;
3344 3344
3345 if (!ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) { 3345 if (!ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) {
3346 /* TODO: Add support for non extent hole punching */ 3346 /* TODO: Add support for non extent hole punching */
3347 return -ENOTSUPP; 3347 return -EOPNOTSUPP;
3348 } 3348 }
3349 3349
3350 if (EXT4_SB(inode->i_sb)->s_cluster_ratio > 1) { 3350 if (EXT4_SB(inode->i_sb)->s_cluster_ratio > 1) {
3351 /* TODO: Add support for bigalloc file systems */ 3351 /* TODO: Add support for bigalloc file systems */
3352 return -ENOTSUPP; 3352 return -EOPNOTSUPP;
3353 } 3353 }
3354 3354
3355 return ext4_ext_punch_hole(file, offset, length); 3355 return ext4_ext_punch_hole(file, offset, length);