diff options
| author | Nick Desaulniers <ndesaulniers@google.com> | 2016-07-18 12:45:17 -0700 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-11-07 13:46:53 +0100 |
| commit | def65019317e52fbca23298dd107741ae1cec4c5 (patch) | |
| tree | e82bbe6bfa6f45ba0610cbc78e3aac20691e3f0e | |
| parent | bb223cd40a20cfb76954186bc3468af10a6fdae0 (diff) | |
fs: ext4: disable support for fallocate FALLOC_FL_PUNCH_HOLE
Bug: 28760453
Change-Id: I019c2de559db9e4b95860ab852211b456d78c4ca
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
(cherry picked from commit eb0c8de6ef9ec336f88ee49c4c37226f03089e9c)
| -rw-r--r-- | fs/ext4/inode.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 7079935c2..5ee08a717 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -3642,6 +3642,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; @@ -3827,6 +3828,12 @@ out_dio: out_mutex: mutex_unlock(&inode->i_mutex); return ret; +#else + /* + * Disabled as per b/28760453 + */ + return -EOPNOTSUPP; +#endif } /* |
