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:
Nick Desaulniers 2016-07-18 12:45:17 -07:00 committed by LuK1337
parent 8fd75f17a8
commit 0331c78ed3

View file

@ -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
}
/*