Merge "fs: ext4: disable support for fallocate FALLOC_FL_PUNCH_HOLE"
This commit is contained in:
commit
e552609350
1 changed files with 7 additions and 0 deletions
|
@ -3602,6 +3602,7 @@ int ext4_can_truncate(struct inode *inode)
|
|||
|
||||
int ext4_punch_hole(struct inode *inode, loff_t offset, loff_t length)
|
||||
{
|
||||
#if 0
|
||||
struct super_block *sb = inode->i_sb;
|
||||
ext4_lblk_t first_block, stop_block;
|
||||
struct address_space *mapping = inode->i_mapping;
|
||||
|
@ -3725,6 +3726,12 @@ out_dio:
|
|||
out_mutex:
|
||||
mutex_unlock(&inode->i_mutex);
|
||||
return ret;
|
||||
#else
|
||||
/*
|
||||
* Disabled as per b/28760453
|
||||
*/
|
||||
return -EOPNOTSUPP;
|
||||
#endif
|
||||
}
|
||||
|
||||
int ext4_inode_attach_jinode(struct inode *inode)
|
||||
|
|
Loading…
Add table
Reference in a new issue