fs: ext4: disable support for fallocate FALLOC_FL_PUNCH_HOLE
Bug: 28760453 Change-Id: I019c2de559db9e4b95860ab852211b456d78c4ca Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Git-repo: https://android.googlesource.com/kernel/msm.git Git-commit: 8cdac916476ae01959b559a0dfae9f8b155fc9f3 Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
This commit is contained in:
parent
626caf4e54
commit
ef4d662cfc
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