Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296591
b: refs/heads/master
c: 7335519
h: refs/heads/master
i:
  296589: e705540
  296587: 553615a
  296583: f1f4726
  296575: 749f0a0
v: v3
  • Loading branch information
Allison Henderson authored and Theodore Ts'o committed Mar 22, 2012
1 parent fa39d0f commit 6d6f866
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: afcff5d80a4106e732d903640161d23950eb8e3b
refs/heads/master: 73355192748483a5ba698345092321611f91b04f
6 changes: 3 additions & 3 deletions trunk/fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3340,16 +3340,16 @@ int ext4_punch_hole(struct file *file, loff_t offset, loff_t length)
{
struct inode *inode = file->f_path.dentry->d_inode;
if (!S_ISREG(inode->i_mode))
return -ENOTSUPP;
return -EOPNOTSUPP;

if (!ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) {
/* TODO: Add support for non extent hole punching */
return -ENOTSUPP;
return -EOPNOTSUPP;
}

if (EXT4_SB(inode->i_sb)->s_cluster_ratio > 1) {
/* TODO: Add support for bigalloc file systems */
return -ENOTSUPP;
return -EOPNOTSUPP;
}

return ext4_ext_punch_hole(file, offset, length);
Expand Down

0 comments on commit 6d6f866

Please sign in to comment.