mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 03:43:03 +00:00
fs: ext4: disable support for fallocate FALLOC_FL_PUNCH_HOLE
Bug: 28760453 Change-Id: I019c2de559db9e4b95860ab852211b456d78c4ca Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Corinna Vinschen <xda@vinschen.de>
This commit is contained in:
parent
8fd75f17a8
commit
0331c78ed3
|
@ -3621,6 +3621,7 @@ int ext4_can_truncate(struct inode *inode)
|
|||
|
||||
int ext4_punch_hole(struct file *file, loff_t offset, loff_t length)
|
||||
{
|
||||
#if 0
|
||||
struct inode *inode = file_inode(file);
|
||||
struct super_block *sb = inode->i_sb;
|
||||
ext4_lblk_t first_block, stop_block;
|
||||
|
@ -3806,6 +3807,12 @@ out_dio:
|
|||
out_mutex:
|
||||
mutex_unlock(&inode->i_mutex);
|
||||
return ret;
|
||||
#else
|
||||
/*
|
||||
* Disabled as per b/28760453
|
||||
*/
|
||||
return -EOPNOTSUPP;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue